Visual Studio project not building when I click debug or press F5

前端 未结 8 1432
梦谈多话
梦谈多话 2020-12-29 18:27

VS2010 c#, winforms project.

It does not build automatically when I click on debug or press f5. If I manually build the project before I debug, it compiles and chan

相关标签:
8条回答
  • 2020-12-29 19:05

    I ran into this same issue and I did the following:

    1. Run Build Clean
    2. Close the solution
    3. Delete any .suo and .user settings files
    4. Delete any .ncb files
    5. Open the solution again
    6. Unload the project
    7. Reload the project
    8. Make sure the project is set as startup again
    9. Debug away!

    You may be able to only do steps 6-9 but I don't know how to get back in that state.

    0 讨论(0)
  • 2020-12-29 19:08

    I had a similar situation with multiple projects in a solution in Visual Studio 2013. One of the projects that the Startup project uses was not building when I clicked the Run button. I had to right-click on the Startup project and select "Build Dependencies" and check the project that wasn't building in there.

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