On the first few days after we released .NET Standard 2.0 (and a wave of new packages that target it) we have seen several customer reports for this kind of error:
Could not install package ‘Microsoft.EntityFrameworkCore.SqlServer 2.0.0’. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.7’, but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
We believe a significant number of customers are now seeing this error because they have older NuGet client or dotnet CLI bits that are not aware of .NET Standard 2.0 and its compatible TFMs.
For these customers, the recommendation in the error message is misleading and ideally we would be prompting them to upgrade NuGet client or dotnet CLI.
Presumably, this can still happen again in the future:
- Whenever we ship a new version of .NET Standard
- Whenever we ship a new version of a .NET platform that is supposed to be compatible with an existing version of .NET Standard
On the first few days after we released .NET Standard 2.0 (and a wave of new packages that target it) we have seen several customer reports for this kind of error:
We believe a significant number of customers are now seeing this error because they have older NuGet client or dotnet CLI bits that are not aware of .NET Standard 2.0 and its compatible TFMs.
For these customers, the recommendation in the error message is misleading and ideally we would be prompting them to upgrade NuGet client or dotnet CLI.
Presumably, this can still happen again in the future: