如何修复重定向警告

How to fix retargeting warning

我有一个 .Net 解决方案,在使用 .Net 4.5.2 的 Win7 x64 构建代理上使用 Visual Studio 2013 Update 5 编译时会产生以下警告。解决方案中的项目都是针对.Net 4.5.2框架的:

C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets (991): The reference assemblies for framework ".NETFramework,Version=v4.5.2" 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.

有人可以解释我需要做什么来解决这个问题吗?其他地方指的是 'repairing the Windows SDK' 但如果这确实是解决方案,我不确定那意味着什么。

我应该担心这个警告吗?

我遇到了同样的问题,我通过安装 Microsoft .NET Framework 4.5.2 Developer Pack 修复了它: https://www.microsoft.com/en-us/download/details.aspx?id=42637