如何使msbuild不重建所有项目 [英] How to make msbuild do not rebuild all projects
问题描述
我们有CCnet + msbuild + tfs.
We have CCnet+msbuild+tfs.
为每个项目配置了构建.我们没有构建解决方案.
Builds are configured for each project. We didnt build with solution.
问题是,如果我们只制作1个,我们应该如何配置构建以不重新构建所有项目
The problem is how should we configure build to not rebuild all projects again if we make only 1
与源代码控制中的一个确切项目相关的更改?有什么办法可以使情况发生,应该在哪里
change relevant to one exact project in source control ? Is there any way to make some condition, and where should
我们指定吗?
推荐答案
像Lars所说,您必须使用"Build"目标来构建它.如果项目仍在重建,则必须将详细程度更改为详细(/v:d).
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).
打开日志文件,并完全搜索"构建目标" CoreCompile".". 请检查下面的第一行,以了解为什么该项目是完全构建的. 应该是这样的:
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".
这篇关于如何使msbuild不重建所有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!