0

I've run into a really weird issue with Nuget packages in .net standard.

I've got 2 projects - a .net standard 2.0 library and a .net core 2.1 console application. If I include anything from the Microsoft.Extensions namespace in the .net standard library it causes exceptions in other Nuget packages in the .net core application. I've tried Microsoft.Extensions.Configuration, Microsoft.Extensions.Primitives, Microsoft.Extensions.Logging

The exception is:

TypeLoadException: Could not load type 'System.MemoryExtensions' from assembly 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

I'm not quite sure the reason why, but it's definitely reproducible.

Michael Brown
  • 1,585
  • 1
  • 22
  • 36

0 Answers0