VS2015 build with TFS2013

I am trying to do teambuild to solve VS2015 with TFS2013. VS2015 is installed on buildserver, and I changed buildtemplate, so msbuild has the argument \ tv: 14.0, but when I start the build, I get the following error:

C: \ Program Files (x86) \ MSBuild \ 14.0 \ bin \ Microsoft.Common.CurrentVersion.targets (96): Invalid static method call syntax: "[Microsoft.Build.Utilities.ToolLocationHelper] :: GetPlatformSDKDisplayName ($ (TargetPlatformIdentifier) , $ (TargetPlatformVersion)). 'Microsoft.Build.Utilities.ToolLocationHelper.GetPlatformSDKDisplayName' not found. A call to a static method should look like: $ ([FullTypeName] :: Method ()), for example. $ ([System.IO.Path ] :: Merge ( a , b )).

The builds server has rebooted, but I'm still getting an error. I also checked this topic: Build error in TFS , but there was no real answer there. Is there anyone who knows how to solve this.

+6
source share
2 answers

I experienced the same error. I determined that TFS2013 is a version of RTM, so we installed TFS2013 Update 5. Now, if I start using the * .12.xaml process template with the parameters /tv:14.0/p:VisualStudioVersion=14.0, the assembly succeeds. I also made a copy of the * .12.xaml assembly process and named it * .14.xaml and changed the RunScan ToolBersion property to โ€œ14.0โ€ and this assembly also works without parameters.

+4
source

You need to customize the build process template by finding the all Run MSBuild action for the MSBuild project , then set ToolVersion to "14.0" and set ToolPath to target MSBuild14 (default: " C: \ Program Files (x86) \ MSBuild \ 14.0 \ Bin " ) After that, check the assembly process template and reinstall the assembly.

Check out the solutions here: TFS 2013 build.NET 4.6 / C # 6.0

0
source

All Articles