You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And this is the error I get when I try to build the solution:
CS0029 Cannot implicitly convert type 'System.Runtime.Serialization.Json.DataContractJsonSerializer' to 'System.Runtime.Serialization.XmlObjectSerializer' NetCoreTests..NETStandard,Version=v2.0
Looks like DataContractJsonSerializer class in System.Runtime.Serialization.Json nuget package doesn't inherit XmlObjectSerializer class in System.Runtime.Serialization.Xml nuget package. I can see that in general there's no dependency between these 2 nuget packages; however, if you check 4 and later versions of .Net Framework DataContractJsonSerializer always inherits from XmlObjectSerializer because as far as I know every DataContractSerializer inherits from XmlObjectSerializer. Even in this repository this inheritance exists: https://github.com/dotnet/standard/blob/master/netstandard/ref/System.Runtime.Serialization.cs#L332
Can you please fix the nuget packages? Or what can you advice for me about this situation?
Hello.
I've started to use .NetCore version=1.0.0-preview2-003121 with Visual Studio 2015. My project.json file is below:
My code file is below:
And this is the error I get when I try to build the solution:
Looks like
DataContractJsonSerializerclass in System.Runtime.Serialization.Json nuget package doesn't inheritXmlObjectSerializerclass in System.Runtime.Serialization.Xml nuget package. I can see that in general there's no dependency between these 2 nuget packages; however, if you check 4 and later versions of .Net FrameworkDataContractJsonSerializeralways inherits fromXmlObjectSerializerbecause as far as I know every DataContractSerializer inherits fromXmlObjectSerializer. Even in this repository this inheritance exists:https://github.com/dotnet/standard/blob/master/netstandard/ref/System.Runtime.Serialization.cs#L332
Can you please fix the nuget packages? Or what can you advice for me about this situation?