JsonKnownTypes
JsonKnownTypes copied to clipboard
Target multiple frameworks
Add net461 and some frameworks that are supported in Newtonsoft.Json. Only add those frameworks that are compatible with the code as it is.
I had to remove netcoreapp2.2 from UnitTests because it is not available for some reason. It got the error: Testhost process exited with error: It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version '2.2.0' was not found.
I added the System.ValueTuple NuGet package because the older .NET Frameworks do not have this built in.
I guess that we can add all the frameworks that all supported by Newtonsoft.Json if we add NuGet packages for the features that are missing in the older frameworks. E.g. Linq is not included in net20.
I can make a fresh pull request if needed.
Now (after merge with latest updates) it fails the test AutoBaseClassSameDiscriminator(auto<BaseClassSameDiscriminator>)
for net46, but it works in Visual Studio. Why?