XmlDocument type not found even though I've referenced System.XML?

后端 未结 5 1054
抹茶落季
抹茶落季 2021-01-19 02:49

I\'ve referenced System.Xml:

using System.Xml;

Then in this line:

XmlDocument xdoc = new XmlDocument();

I

5条回答
  •  一向
    一向 (楼主)
    2021-01-19 03:40

    If you're using Visual Studio Code, you need to include the .NET Standard package from NuGet. You can also just include the System.Xml.XmlDocument package directly if that's all you need.

提交回复
热议问题