Sky
Newtonsoft.JSON ignore a JsonProperty
Hi there! I'm struggling at making my classes to correctly be serialized. I have an interface:
And its implementation:
I'm also using this serializer:
And I'm serializing my value this way:
However, I am unable to get the type property working! It literally never shows when serializing my class.
For instance, I'm getting
{"text": "Hello There", "extra":[]}
when serializing new TextComponent("Hello There")
Can anyone help me about this? Thanks ^.^22 replies
Choosing what architecture NuGet.Protocol Downloads
Hi there!
I'm working on a sort of addon-like system for one of my project, and would like to handle addon's dependencies using NuGet repositories. Right now, I'm downloading the DLLs requested by an addon (for instance in my test, it was
SpacedGrid-Avalonia
version 11.0.0
) into a folder, then loading the DLLs using Assembly#Load
.
However, when calling this method, I'm getting a Bad IL Format
, which I guess means the downloaded DLLs was not for the right machine arch. Here's my code for downloading from NuGet repos:
138 replies