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

后端 未结 5 1049
抹茶落季
抹茶落季 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

    I know this is a very old question but the problem persists nowadays. I'm on a Xamarin.Forms project and the PCL project targets a profile (Profile111) that doesn't support XmlDocument. I had to use System.Xml.Linq.XDocument. My projects targets WindowsPhone and XmlDocument doesn't exist on this target.

提交回复
热议问题