-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuget package 2.1.1 does not declare dependency on System.Runtime.Caching for .NET Standard assemblies #872
Comments
Workaround would be ??
|
Acknowledged. |
Please feel free to try the changes from PR #877 and let us know by downloading build NuGet from here: CI Build Artifacts |
@cheenamalhotra Thanks, I tried it out and that fixed the problem! |
Closing issue as linked PRs are merged, fix will be available in next patch of v2.1 and next preview version onwards, |
Description
The 2.1.1 nuget package does not declare a dependency on
System.Runtime.Caching
for the .NET Standard 2.0 and 2.1 runtimes. However these assemblies in the nuget package referenceSystem.Runtime.Caching
:This can cause a problem if you use functionality that uses classes from
System.Runtime.Caching
. Addtionally, some frameworks look at assembly metadata and break when assemblies are missing. For example, the Xamarin Mac framework crashes on startup.To reproduce
I'm using the out-of-support .NET Core 2.0 to demonstrate the issue, since in-support versions of .NET Core are use the .NetCoreApp assemblies from the Nuget package. Other runtimes that support .NET Standard 2.0 should also exhibit this problem.
Error on execution:
Expected behavior
The Nuget package should declare that the .NET Standard 2.0 and 2.1 runtimes need the
System.Runtime.Caching
dependancy. The .NETCoreApp 2.1 and 3.1 targets already do that.The text was updated successfully, but these errors were encountered: