При попытке создать проект в стиле Microsoft.NET.Sdk, ориентированный на net47, а не на .netcore или .net std. 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.