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?