在哪里可以为我的构建服务器下载 .NET 4.5 Multitargeting Pack? [英] Where can I download the .NET 4.5 Multitargeting Pack for my build server?

查看:20
本文介绍了在哪里可以为我的构建服务器下载 .NET 4.5 Multitargeting Pack?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 TeamCity 中构建一个 .net 4.5/VS2012 解决方案.我的构建在安装了 VS2012 的代理上工作,但在没有 VS2012 的代理上,我收到如下警告:

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:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(983,5):警告 MSB3644:未找到框架.NETFramework,Version=v4.5"的参考程序集.

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

要解决此问题,请为此框架版本安装 SDK 或 Targeting Pack,或者将您的应用程序重新定位到您安装了 SDK 或 Targeting Pack 的框架版本.请注意,程序集将从全局程序集缓存 (GAC) 中解析,并将用于代替引用程序集.因此,您的程序集可能没有正确针对您想要的框架.

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.

我可以在不安装所有 Visual Studio 2012 的情况下安装目标吗,就像使用 .NET 4.0 一样?

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

在哪里下载?

(我觉得这个问题很可笑...但我已经搜索并搜索过了!老实说!该站点 表明它仅适用于 VS2012,这似乎很疯狂.)

(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.)

推荐答案

您无需安装任何 SDK.只需将以下文件夹从您的开发机器复制到您的 TFS 构建机器的同一文件夹中:

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程序集MicrosoftFramework.NETFrameworkv4.5

C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5

<小时>

如果这对您不起作用,请参阅:http://getdotnet.azurewebsites.net/target-dotnet-platforms.html 可在其中找到所需的 SDK.但是请注意来自@Lu55 的评论:从 .NET Framework 4.5 部分链接到Windows 8 软件开发工具包(SDK)"部分意外地重定向到Windows 8.1 的 Windows 软件开发工具包(SDK)",用于 .NET 框架 4.5.1.


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 提到:用于 Windows 8 的 Windows 软件开发工具包 (SDK) 的链接,实际上是用于 .NET Framework 4.5,是:https://developer.microsoft.com/en-us/windows/downloads/windows-8-sdk

@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

这篇关于在哪里可以为我的构建服务器下载 .NET 4.5 Multitargeting Pack?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆