【发布时间】:2018-10-21 10:05:52
【问题描述】:
在尝试构建面向 net47 而不是 .netcore 或 .net std 的 Microsoft.NET.Sdk 样式项目时。 dotnet build 将给出一个关于缺少目标包的错误。 msbuild 将改为工作,但我更喜欢使用dotnet build。有没有办法。
/usr/local/share/dotnet/sdk/2.1.200/Microsoft.Common.CurrentVersion.targets
(1179,5): error MSB3644: The reference assemblies for framework
".NETFramework,Version=v4.7" 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.
【问题讨论】:
标签: .net linux macos dotnet-cli