Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I download the .NET 4.5 Multitargeting Pack for my build server?

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 like this:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found.

To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

Can I install the targets without installing all of Visual Studio 2012, like I could with .NET 4.0?

Where's the download?

(I feel ridiculous asking this...but I have searched and searched for it! Honest! This site suggests it's only available with VS2012, which seems like madness.)

like image 397
Michael Haren Avatar asked Jun 20 '13 18:06

Michael Haren


People also ask

How do I install .NET Framework 4.5 on Windows Server?

Article ContentType Start PowerShell in the Command Prompt window to start Windows PowerShell. 2. Type Install-WindowsFeature . NET-Framework-45-Features and press Enter to install the NET Framework 4.5 Features feature.

What is Microsoft .NET framework 4.5 multi targeting pack?

2 Multi-Targeting Pack Language Packs: Contains the IntelliSense files to display help while building apps that target the . NET Framework 4.5. 2 through Visual Studio and third party IDEs.

How do I install a .NET developer pack?

From the developer pack download page, choose Download. Next, choose Run or Save, and follow the instructions when prompted. You can also install the developer pack or targeting pack for a specific version of . NET Framework by selecting it from the optional components in the .


1 Answers

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

like image 81
cederlof Avatar answered Sep 20 '22 08:09

cederlof