Lorenzo
Lorenzo

Reputation: 3

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.

Upvotes: 0

Views: 2141

Answers (1)

Junior Jiang
Junior Jiang

Reputation: 12723

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.

Upvotes: 0

Related Questions