How to make msbuild do not rebuild all projects

前端 未结 2 767
Happy的楠姐
Happy的楠姐 2021-01-07 09:55

We have CCnet+msbuild+tfs.

Builds are configured for each project. We didnt build with solution.

The problem is how should we configure build to not rebuild

2条回答
  •  离开以前
    2021-01-07 10:08

    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".
    

提交回复
热议问题