Visual Studio 2015 with TFS 2010

☆樱花仙子☆ 提交于 2019-12-25 08:41:03

问题


We recently upgraded SQL Server 2008 to SQL Server 2014 and since we had DB projects we also had to upgrade Visual Studio from 2010 to 2015 in order to support build and deployment of DB projects from Visual Studio locally.

We are now trying to use Visual Studio Enterprise 2015 with TFS 2010 But I am facing issues with build automation and TFS server

  1. When I try to select "Items to Build" I am getting this message box,

  2. When I try to open the build template I am not able view some of the agent scope,

Much appreciate any advice that can help to fix this issue, thanks.

============= UPDATE ========================

I have VS 2010 and VS 2015 installed on same workstation (2010 in primary drive and 2015 in secondary drive), it seems it is pointing to teamfoundation dll's of version 2010.

I manually tried to install Microsoft.TeamFoundation.Build.Workflow of VS 2015 in GAC; this solved my second problem (i.e. no problem in viewing the build template now) but I am still facing same error while selecting "Items to build"

================================


回答1:


What I thought is that you may had to amended the build templates to point to MS Build version 14.0. Yes, there are two parameters including 'ToolPath' and 'Tool version' to set. For detail, you can reference this link:BuildActivity ignores ToolsVersion




回答2:


Patrick answer is partially correct. You vs is pointing to version 14.0 of all TFS builds and lots of stuff from 2010 templates is obsolete. My advice id to download separate vs 2010 on same system or update tfs to 2015 and then redo build definition using vNext.

Pros of tfs 2015 vNext. Nicer, cleaner and will work for next few years.

Pros of vs 2010 vNext. You install vs 2010 and everything works.

Truthfully if you didn't saved any changes since moment your builds that used template last time worked they should still work, regardless of the fact that your vs can't read them.



来源:https://stackoverflow.com/questions/35789081/visual-studio-2015-with-tfs-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!