2017年11月1日 星期三

[.NET Standard] .net standard class library was restored using 4.6.1 instead of the project target framework

 .NET Standard


The warning message showed while I referenced a .NET Standard class library package on another project.




Package ‘XXXX 1.0.0’ was restored using ‘.NETFramework,Version=v4.6.1’ instead of the project target framework ‘.NETStandard,Version=v2.0’. This package may not be fully compatible with your project.

Immo Landwerth explained why showing this warning here:
Announcing .NET Standard 2.0. (Search “Reusing an existing .NET Framework library”)

If we are sure that the package is fine, we can disable the warning by setting the property: NoWarn



Type NU1701 for property: NoWarn




Reference




沒有留言:

張貼留言