Closed jokerosky closed 4 years ago
You need to either use the full framework System.Xml and add to frameworkAssemblies
e.g.
"net452": {
"frameworkAssemblies": {
"System.Xml": {}
}
}
Or to use the corefx you need to add the specific component you require as there is no System.XML and its is more modular. See: System.Xml packages on nuget
So for example if you want to use XmlDocument add a reference to System.Xml.XmlDocument 4.0.1
oh, @benaadams i found out what is wrong. I have added this direct links to framework assemblies, but it have not worked, because of case sensitive name. The problem is in Visual Studio 2015, which adds System.XML instead of System.Xml. so it is not dotnet issue.
Can someone from MS team add this issue for VS guys and close this topic?
@terrajobst any idea how/where in VS to route it?
Issue moved to dotnet/sdk dotnet/runtime#14244 via ZenHub
I`ve created new solution for .net core (asp.net + class library) i need to add reference to System.XML but it fails with error, same time references to other libraries works well (for example System.Xml.Linq). I checked it on 3 different computers and got this error.