更新时间:2022-11-07 21:46:39
XmlNode
不属于.NET Core(由UWP使用).它可以在编辑器或独立版本中使用,因为它们使用的是.NET的不同版本(取决于您的Unity版本,它可能使用的是Mono或.NET 2.X或4.X).
XmlNode
is not part of .NET Core (which is used by UWP). It works in the editor or standalone builds because they are using a different version of .NET (depending on your version of Unity, it could be using Mono or .NET 2.X or 4.X).
使用NuGet将此程序包添加到您的Visual Studio项目中,并您将可以再次使用XmlNode
.程序集将按预期在System.Xml
命名空间下定义XmlNode
类.
Add this package to your Visual Studio project using NuGet, and you will be able to use XmlNode
again. This assembly will define the XmlNode
class under the System.Xml
namespace, as expected.