Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Why Netcoreapp3.1 not Compatible with net5.0 Class Library

$
0
0

As per my understanding, net5.0 is compatible with both netcoreapp and older .net versions.

I am trying to create an Azure function that targets netcoreapp3.1 and use a library that was built targetting net5.0. However, I am getting the following error, which indicates there is incompatibility issues.

Error NU1202 Package XXX is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1).Package XXX supports: net5.0 (.NETCoreApp,Version=v5.0)

I have quoted the above from VS 2019 but replaced package name with XXX for privacy. The two strings in bracket are verbatim and I am not clear why net5.0 is being listed as .NETCoreApp, Version 5.0.

Could someone explain what is going on and if there is anything I have misunderstood?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>