简体   繁体   中英

Package 'Microsoft.Bcl 1.1.10' was restored using '

Package 'Microsoft.Bcl 1.1.10' 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.

I have this warning in the NuGet package of Microsoft.Net.Http and Microsoft.Bcl.Buil hough the project compiles but I am not sure if I need to worry about it as the last line says:

This package may not be fully compatible with your project.

Below is the exact warning

Package 'Microsoft.Bcl 1.1.10' 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.

NU1701

This appears when I want to archive to publish the app, in debug mode it works without any problem.

In Microsoft.Bcl document , Bcl need .Net Framwork 4.5 .

This package is only required for projects targeting .NET Framework 4.5, Windows 8, Windows Phone Silverlight 8, or Windows Phone 8.1 when consuming a library that uses this package.

And from NU1701 warnning info :

Package 'Microsoft.Bcl 1.1.10' 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.

You should change your projecr target framework from .NETStandard to .NETFramework .Having a look at this discussion about NU1701 .If project not using this nuget , also can remove it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM