aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
256 stars 123 forks source link

Run Ctrl+F5 does not work #989

Open jods4 opened 7 years ago

jods4 commented 7 years ago

I have migrated my ASP.NET Core project to the new csproj system. I'm using VS 2017 RC, with the Feb 7th update.

My project runs fine with dotnet run, runs fine in IIS Express when debugging (F5) but nothing happens when I try to run without debugger (Ctrl+F5).

I know this is very little information, but literally nothing seems to happen: no UI message, no error in the windows Application event log, no trace of startup in our application log. The browser is launched but obviously the application is not running :(

This is a net46 application, with a global.json file that references SDK 1.0.0-preview1-002702 (I know it's old but upgrading is not possible right now).

mlorbetske commented 7 years ago

Hi @jods4 - should we investigate both of these as part of #990? It seems like they're probably related.

jods4 commented 7 years ago

@mlorbetske Maybe they are, I honestly can't tell. But I confirm that it's indeed the same solution!

jods4 commented 7 years ago

Today Ctrl+F5 is working. The only notable change that I can think of is that I turned off Lightweight solution loading.

I'll try to experiment more next week.

jods4 commented 7 years ago

Still repro on VS 2017 RTM

Seems very much related to the #990 indeed. I think the application does not run because somehow it does not build. I think that it's very likely that if #990 is fixed this should work as well.

Lightweight Solution Load is key, when it's disabled I don't have problems.