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

前端 未结 8 1430
梦谈多话
梦谈多话 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 18:55

    When you work on a dependency

    In my case, I am working on a library used by an executable. It was necessary to say to the solution to include the dependency of the library in the executable project solution to build the executable code and the library code before launching the debugging:

    • Tools Menu, click on Options. Go to "Projects and Solutions/Build and Run", "On Run, when projects are out of date" needs to be on "Always build".
    • Right-click the Solution (not project) in the Solution Explorer and select "Project Dependencies". Check the boxes of dependencies "Lib1" and "Lib2".

提交回复
热议问题