I want to build a .net 4.5/VS2012 solution in TeamCity. My builds work on the agent that has VS2012 installed, but on the agent that doesn\'t have VS2012, I get warnings lik
You don't need to install any SDK. Just copy the following folder from your development machine into the same folder of your TFS build machine:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5
If this doesn't work for you, refer to: http://getdotnet.azurewebsites.net/target-dotnet-platforms.html where you'll find the SDKs you need. However note the comment from @Lu55: Link to "Windows Software Development Kit (SDK) for Windows 8" from .NET Framework 4.5 section unexpectedly redirects to "Windows Software Development Kit (SDK) for Windows 8.1" which is for .NET Framework 4.5.1.
@dotarj mentions: The link for Windows Software Development Kit (SDK) for Windows 8, which is actually for .NET Framework 4.5, is: https://developer.microsoft.com/en-us/windows/downloads/windows-8-sdk
I was getting the error below on Windows Server 2016
The reference assemblies for framework ".NETFramework, Version=4.6.1" were not found
I went on my build server "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework" and noticed that I didn't have the required versions.
I then Installed the latest .NET Framework version from https://visualstudio.microsoft.com/downloads/