Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 build with TFS2013

Tags:

msbuild

tfs

I'm trying to do a teambuild for a VS2015 solution with TFS2013. On the buildserver VS2015 is installed and I changed the buildtemplate so msbuild has an argument \tv:14.0, but when a start a build I get the following error:

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (96): Invalid static method invocation syntax: "[Microsoft.Build.Utilities.ToolLocationHelper]::GetPlatformSDKDisplayName($(TargetPlatformIdentifier), $(TargetPlatformVersion))". Method 'Microsoft.Build.Utilities.ToolLocationHelper.GetPlatformSDKDisplayName' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(a, b)).

The buildserver has been restarted but I still get the error. I also checked this thread: Build failed in TFS but no real answer was given there. Is there anyone that knows how to solve this.

like image 659
Sebastian S Avatar asked Nov 16 '15 13:11

Sebastian S


1 Answers

I was experiencing the exact same error. I determined that TFS2013 was the RTM version so we installed TFS2013 Update 5. Now if I run using the *.12.xaml process template with the /tv:14.0 /p:VisualStudioVersion=14.0 parameters the build succeeds. I have also made a copy of the *.12.xaml build process and named it *.14.xaml and changed the Run MSBuild steps ToolVersion property to "14.0" and this build works as well, without the parameters.

like image 133
basmith Avatar answered Nov 15 '22 08:11

basmith