简体   繁体   English

项目“ClassLibraryX.csproj”针对“netstandard2.1”。 它不能被以“.NETFramework,Version=v4.7.2”为目标的项目引用

[英]Project 'ClassLibraryX.csproj' targets 'netstandard2.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.2

I have a class library project that targets netstandard 2.1 and when I referenced that to my WinForms .NET Framework Project that targets .NET Framework v4.7.2 I get an error on building.我有一个面向 netstandard 2.1 的类库项目,当我将它引用到面向 .NET Framework v4.7.2 的 WinForms .NET Framework 项目时,我在构建时遇到错误。

Project 'ClassLibraryX.csproj' targets 'netstandard2.1'.项目“ClassLibraryX.csproj”针对“netstandard2.1”。 It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.2它不能被以“.NETFramework,Version=v4.7.2”为目标的项目引用

@esav96: @esav96:

.NET Framework doesn't support .NET Standard 2.1. .NET Framework 不支持 .NET Standard 2.1。 For more information.想要查询更多的信息。

You can see the announcement of .NET Standard 2.1.您可以看到.NET Standard 2.1 的公告。 . .

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 项目“ClassLibrary1.csproj”针对“netcoreapp2.1”。 它不能被以“.NETFramework,Version=v4.7.2”为目标的项目引用 - Project 'ClassLibrary1.csproj' targets 'netcoreapp2.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.2' 项目“ ClassLibrary1.csproj”的目标是“ netstandard2.1”。 面向'.NETFramework,Version = v4.8'的项目无法引用它 - Project 'ClassLibrary1.csproj' targets 'netstandard2.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.8' Project X的目标是'.NETStandard,Version = v1.6'。 它不能被针对'.NETFramework,Version = v4.6.1'的项目引用 - Project X targets '.NETStandard,Version=v1.6'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.6.1' DalvikUWPCSharp.csproj 的目标是 'UAP,Version=v10.0.18362'。 它不能被以 '.NETCore,Version=v5.0' 为目标的项目引用 - DalvikUWPCSharp.csproj' targets 'UAP,Version=v10.0.18362'. It cannot be referenced by a project that targets '.NETCore,Version=v5.0' 在分支之间转换时生成错误:您的项目未引用“.NETFramework,Version=v4.7.2”框架 - Build error while transitioning between branches: Your project is not referencing the ".NETFramework,Version=v4.7.2" framework “ClassLib1”以 'net.4.7.2' 为目标,它不能被以 3.5 为目标的项目引用 - "ClassLib1" targets 'net.4.7.2' it cannot be referenced by a project that targets 3.5 Ranorex 构建失败 9.4.1 找不到框架“.NETFramework,Version=v4.7.2”的参考程序集 - Ranorex build fails 9.4.1 The reference assemblies for framework “.NETFramework,Version=v4.7.2” were not found netstandard2.1 版本的 CancellationTokenRegistration.Unregister() - netstandard2.1 version of CancellationTokenRegistration.Unregister() 在 .Net Core 项目中使用 .Net Framework dll (v4.7.2) - Use .Net Framework dll (v4.7.2) in .Net Core project 启动项目“xxx”针对框架“.NETStandard” - Startup project 'xxx' targets framework '.NETStandard'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM