.Net Standard 1.2 Strange Exception


#1

I am trying to use a .NET Standard 1.2 library from a Windows Phone 8.1 Project. It Compiles fine but at runtime i get this exception The type ‘Dictionary<,>’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. I have checked all my nuget packages and are correct in both projects. Any help appreciated!!!

When I call the same code from a WPF application that targets 4.5.1 framework version it executes fine!!!

Thank You!!


.NET Foundation Website | Blog | Projects | Code of Conduct