How to make msbuild do not rebuild all projects

自闭症网瘾萝莉.ら 提交于 2019-12-01 02:17:35

When calling msbuild use Build as target and not ReBuild. Also make sure you don't change the date of the source files and not to remove any intermediate debug files.

Like Lars said, you have to build it with "Build" target. If projects are still rebuilding, you have to change verbosity to detailed (/v:d).

Open log file and search for "Building target "CoreCompile" completely.". Check the first line below for a reason why this project was build completely. There should be something like this:

    Building target "CoreCompile" completely.
    Input file "C:\Users\xxx\AppData\Local\Temp\xpv14dzs.cs" is newer than output file "obj\Debug\Assembly.pdb".
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!