简体   繁体   English

TFS Build 2013-使用Visual Studio 2015

[英]TFS Build 2013 - using Visual Studio 2015

I have been having a bit of trouble getting Build on TFS 2013 to work when using Visual Studio 2015 for the checking in of files. 使用Visual Studio 2015检入文件时,让TFS 2013上的Build工作时遇到了一些麻烦。 The solution/project that I am working on was created on VS 2015 (.NET 4.6) and I seem to be having troubles building it on my TFS 2013. 我正在使用的解决方案/项目是在VS 2015(.NET 4.6)上创建的,在TFS 2013上构建它似乎有些麻烦。

I was firstly getting an error: 我首先遇到错误:

Confirm that the path in the declaration is correct, and that the file exists on disk 确认声明中的路径正确,并且文件在磁盘上存在

But I seem to have overcome this by adding: 但是我似乎通过添加以下内容克服了这一点:

/p:VisualStudioVersion=14.0 /p:VisualStudioVersion=14.0

against the MSBuild Agent. 针对MSBuild代理。 That overcome I then try to build a check in (from VS 2015) and I now get the error: 克服了这个问题,然后我尝试建立一个签入(来自VS 2015),现在我得到了错误:

TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not valid 'C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow'. TF900547:包含Visual Studio测试运行器程序集的目录无效'C:\\ Program Files(x86)\\ Microsoft Visual Studio 12.0 \\ Common7 \\ IDE \\ CommonExtensions \\ Microsoft \\ TestWindow'。

This is suggesting that there is still a reference to the older version of VS for the TestWindow (ie 12.0) instead of looking in the folder 这表明对于TestWindow(即12.0),仍然有对VS的较旧版本的引用,而不是在文件夹中查找

Visual Studio 14.0 Visual Studio 14.0

Which is where I would want it to point. 这是我要指出的地方。

I have Visual Studio 2015 installed on the same machine as TFS so everything is there - but in the respective 14.0 folders where TFS keeps going to look in 12.0 我在与TFS相同的机器上安装了Visual Studio 2015,因此一切都存在-但是在相应的14.0文件夹中,TFS会一直在12.0中查找

Am I missing an obvious trick with regards to how I have all this setup or do I just keep having to plug at these issues as they come up? 我是否缺少关于如何进行所有这些设置的明显窍门,还是我不得不在出现这些问题时始终必须解决这些问题?

Obviously I would like to get TFS 2015 setup to use alongside VS 2015 developments but that is a little wile off yet. 显然,我希望将TFS 2015设置与VS 2015开发一起使用,但这还有些不完善。

Thanks! 谢谢!

I ended up starting from scratch but this time installing VS 2013 alongside the 2013 TFS installation. 我从零开始,但是这次与2013 TFS安装一起安装了VS 2013。 Since then all seems fine and building well! 从那时起,一切似乎都很好并且建设良好!

Many other community members have the similar issue, the /p:VisualStudioVersion=14.0 argument doesn't work. 许多其他社区成员也存在类似的问题,/ p:VisualStudioVersion = 14.0参数不起作用。 You can follow below steps and retry it. 您可以按照以下步骤重试。

1.Customize the tfs build process template to set ToolPath of the Run MSBuild for Project to target to MSBuild14; 1.自定义tfs构建过程模板,以将“运行MSBuild for Project”的ToolPath设置为以MSBuild14为目标; and set ToolVersion to "14.0". 并将ToolVersion设置为“ 14.0”。

2.Check in this build process template and re-queue the build 2.检入此构建过程模板并重新排队构建

For detail and screenshot you can reference this link : BuildActivity ignores ToolsVersion 有关详细信息和屏幕截图,您可以引用此链接: BuildActivity忽略ToolsVersion

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

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