Although my solution is building on my local machine, it throws this error on TeamCity when I use "Visual Studio (sln)" as the runner for the build step:
[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
)).
Any idea what I'm missing on the TeamCity side ? Do I need to change MSBuild runner ?
I would suggest this is trying to find the path to the SDK from the Registry and it's unable to find it.
Try installing Visual Studio Community Edition on the build server and this should fix your issue
Visual Studio Community Edition Download Page
Visual Studio 2013 SDK