没有完整的.net框架安装,msbuild 14无法正常工作 [英] msbuild 14 doesn't work without full .net framework installation

查看:141
本文介绍了没有完整的.net框架安装,msbuild 14无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台带有Visual Studio 2010和多个构建目标的构建机器。
我使用的所有其他目标均按预期工作,并且由于某种原因,.net 4.6.1的新版本14无效。

I have a build machine with visual studio 2010 and multiple build targets. all the other targets that I use works as expected and for some reason the new build of version 14 for .net 4.6.1 doesn't work.

当我从命令行执行构建时,出现以下错误:

When I'm executing the build from command line I get the following error:


C:\Program Files(x86)\MSBuild \14.0\bin\Microsoft.Common.CurrentVersion.targets(1097,5):警告MSB3644:找不到框架 .NETFramework,Version = v4.6.1的参考程序集。要解决此问题,请为此框架版本安装SDK或Targeting Pack,或将您的应用程序重新定位到已为其安装SDK或Targeting Pack的框架版本。请注意,程序集将从全局程序集缓存(GAC)中解析,并将代替参考程序集。因此,您的程序集可能未针对您想要的框架正确定位。

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1097,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.1" 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 someone explain to me how to solve it?

推荐答案

您应该安装正确的.NET Framework SDK(可能还有Windows),以便能够为.NET 4.6.1进行编译。

You should install the correct SDK of the .NET Framework (and probably Windows) to be able to compile for .NET 4.6.1.


  • 您可以找到.NET 4.6.1 SDK 此处

  • 可以在此页面,位于适用于Windows 10的Windows Standalone SDK 下。

  • You can find the .NET 4.6.1 SDK here.
  • The latest Windows SDK can be found on this page, under Windows Standalone SDK for Windows 10.

这篇关于没有完整的.net框架安装,msbuild 14无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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