System.Security.Permissions missing when invoking JsonConvert.DeserializeObject in .NET Core 2.0

前端 未结 5 1875
小鲜肉
小鲜肉 2020-12-15 08:16

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 in

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 08:50

    This was due to a lack of understanding of how .NET Core works. I opened up the csproj and added a reference to the required file 'System.Security.Permissions' and reloaded the project. At this point, nuget resolved it. Json.NET now works as expected.

提交回复
热议问题