Visual Studio Rebuilds unmodified projects

前端 未结 17 1991
夕颜
夕颜 2020-12-04 08:49

So, as the title reads, I have a VS2010 solution with ~50 projects in it right now. If I make a change to a \"top level\" project that nothing references then VS still rebui

17条回答
  •  情书的邮戳
    2020-12-04 08:57

    For .Net Core Projects, all solutions above are not working. I've found the solution. In case you are using Visual Studio 2019:

    1. Build the solution twice
    2. Turn on Tools -> Options -> Projects and Solutions -> SDK-Style Projects -> Logging Level -> Verbose
    3. Clear the output window
    4. Build your start project
    5. Inspect the output window. All the string starting with FastUpToDate
    6. You will find some project items that are making your project not up to date.
    7. Fix these issues and try again from step 1. If your fixes are correct, you will achieve Build: 0 succeeded, 0 failed, {n} up-to-date, 0 skipped in the last string of build output.

提交回复
热议问题