how find out what is causing Visual Studio to think each project is out of date

You can find out what is causing Visual Studio to think each project is out of date, and then address the issue directly.

  1. Select Tools → Options → Projects and Solutions → Build and Run.
  2. For the setting "MSBuild project build output verbosity:" select "Diagnostic".
  3. Build.

You will get a huge amount of output in the output window detailing exactly what the build is doing. Before building each project it will print out why it thinks it is out of date. An example of such output is:

Project 'Foo' is not up to date. Input file 'c:\Bar.cs' is modified after output file

These "not up to date" messages should point you to the real cause of the unnecessary builds, which you can then fix.

猜你喜欢

转载自www.cnblogs.com/likemao/p/9265676.html
今日推荐