简体   繁体   English

Build.Vnext TFS2015未在“项目构建顺序”中构建解决方案

[英]Build.Vnext TFS2015 is not building solution in “Project Build Order”

Has anyone experienced TFS Build 2015 V.Next building their projects in a different order than they set in the sln? 有没有人经历过TFS Build 2015 V.Next以不同于在sln中设置的顺序构建项目? We have a project that uses an exe that is created and we have set in the solution to build in a specific order. 我们有一个使用创建的exe的项目,并且在解决方案中设置了它以特定顺序进行构建。 However when the build runs online it builds in it's own order and the file doesn't exist yet. 但是,当构建在线运行时,它将按自己的顺序构建,并且该文件尚不存在。 Obviously I might switch it to be in two solutions but I would rather not have to modify the sln because of a nuance in tfs 2015. 显然,我可能会将其切换为两种解决方案,但由于在2015年tfs中的细微差别,我宁愿不必修改sln。

So it turns out that the solution didn't support multiple processors because it built a file that it used as a .exe in the build steps. 事实证明,该解决方案不支持多个处理器,因为它构建了一个在构建步骤中用作.exe的文件。 So it built the .exe in another process and then built the other .dll in another process. 因此,它在另一个进程中构建了.exe,然后在另一个进程中构建了另一个.dll。

Run msbuild with the following argument to resolve the issue: 使用以下参数运行msbuild可以解决此问题:

msbuild.exe /m:1 {SLN}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM