VS 2015 Update 1 - Claiming I am debugging a release build

前端 未结 18 1810
刺人心
刺人心 2020-12-01 03:47

After updating to VS 2015 update 1, if I run a web project (MVC), stop the application, then try to run it again, VS stops and pops up a dialog claiming

相关标签:
18条回答
  • 2020-12-01 04:26

    In my case, the error message was correct. I was running an application that loaded the released version. So I corrected it by having the application load the debug version instead.

    Elementary, I know, and I realize I make myself look like an idiot. But sometimes the problem is exactly what is reported.

    0 讨论(0)
  • 2020-12-01 04:32

    There seem to be as many solutions as there are people having the problem, but in my case I had to remove and re-add a project reference. The project reference was in a unit test project in the same solution.

    0 讨论(0)
  • 2020-12-01 04:33

    I encountered the same problem. I resolved the problem by manually deleting all the files from the 'bin' folder and then rebuild the solution. I don't get this dialog anymore.

    0 讨论(0)
  • 2020-12-01 04:34

    I solved the problem setting the configuration to Debug in the Configuration Manger window as suggested in this answer.

    0 讨论(0)
  • 2020-12-01 04:34

    Restart Visual Studio. This fixed the issue for me in 2017 Professional.

    0 讨论(0)
  • 2020-12-01 04:36

    Cleaning (and rebuilding) the solution works for me as a temporary workaround. Also you can select Debug > Options and unselect the Suppress JIT optimization checkbox.

    0 讨论(0)
提交回复
热议问题