我有自己的nuget专用服务器。我有一个.NET Core控制台应用程序,当我引用使用.NET Core 3.1中内置的dll创建的nuget程序包时, 我在VS2019中收到以下警告
Package 'MyPackage 1.0.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.
当我直接在项目中引用dll时,我没有看到此警告
我的nuspec文件如下
<?xml version="1.0" encoding="utf-8"?>
<package >
<metadata>
<id>MyPackage</id>
<version>1.0.1</version>
<authors>pantonis</authors>
<owners>pantonis</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">Proprietary</license>
<projectUrl>https://www.example.com</projectUrl>
<iconUrl>https://www.example.com</iconUrl>
<description>Helper Library</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2020</copyright>
<tags></tags>
</metadata>
<files>
<file src="MyPackage.Contracts.dll" target="lib/netcoreapp3.1" />
<file src="MyPackage.Contracts.pdb" target="lib/netcoreapp3.1" />
<file src="MyPackage.dll" target="lib/netcoreapp3.1" />
<file src="MyPackage.pdb" target="lib/netcoreapp3.1" />
</files>
</package>
我正在使用nuget pack .\MyPackage.nuspec
进行构建,并将nupkg添加到nuget服务器中
我在做什么错了?