Visual Studio 2015 with TFS 2010

2019-09-16 02:14发布

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,

    enter image description here

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

    enter image description here

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"

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

2条回答
一夜七次
2楼-- · 2019-09-16 02:43

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.

查看更多
对你真心纯属浪费
3楼-- · 2019-09-16 03:02

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

查看更多
登录 后发表回答