包的目标是.NETCore,而我的目标是.NETCoreApp

我想向我的项目中添加一个程序包,但是它说:

error: Package PixivCS 0.4.4 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package PixivCS 0.4.4 supports: netcore50 (.NETCore,Version=v5.0)

Then I tried to change the target framework using the properties option in VisualStudio, but the .NET 5.0 is the only option screenshot

If change the <TargetFramework>net5.0</TargetFramework> in .csproj to <TargetFramework>netcore50</TargetFramework>

Error   NETSDK1013  The TargetFramework value 'netcore50' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.   HelloWorld  C:\Program Files\dotnet\sdk\5.0.100-preview.3.20216.6\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 100 

How can I change the framework of my project form net5.0 to netcore50 so I can use that package?

What's the difference between .NETCore and .NETCoreApp?

评论