System.Security.Permissions missing when invoking JsonConvert.DeserializeObject<T> in .NET Core 2.0
问题 I am currently looking at using .NET Core 2.0 so that I can run my app on multiple platforms. One thing I need to do is take an incoming string and deseralise it into an object. e.g. var resultingObject = JsonConvert.DeserializeObject<MyDataContract>(request); In full .NET, this would run and return me my object. However in .NET Core 2.0 I get the following exception Could not load file or assembly 'System.Security.Permissions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51