System.TypeLoadException error when executing a dll created via c# .net standard library - C#