我必须读取一个带签名的xml
Using System.Security;
System.Security.Cryptography.Xml.SignedXml signedXml = new System.Security.Cryptography.Xml.SignedXml(lic);First Unity/VS抱怨
VS > Error 11类型或名称空间名称
Xml' does not exist in the namespaceSystem.Security.Cryptoography‘。您缺少程序集引用吗?
所以我在Visual中添加了一个对(C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Security.dll)...but System.Security的引用,一直抱怨
错误CS0234:类型或名称空间名称
Xml' does not exist in the namespaceSystem.Security.Cryptoography‘。您缺少程序集引用吗?
然后,我试图直接复制资产folder...but中的‘folder...but’,仍然是相同的消息!
请问我做错什么了?要做些什么?非常感谢!
发布于 2017-04-06 10:08:47
大多数System.Security.Cryptography命名空间都被排除在统一的默认.Net 2.0 Subset API之外。很可能.Xml也被剥离了。以下之一也是如此:
player settings”。在检查器中查找默认设置为API Compatability Level的.Net 2.0 Subset。将其更改为.Net 2.0,其中包括先前剥离的类/命名空间的其余部分。这是从统一的Subset API中排除的内容:https://docs.unity3d.com/412/Documentation/ScriptReference/MonoCompatibility.html
对不起,我找不到这份文件的当前版本
编辑:
正如@ your 2737085所建议的,您还必须将mcs.rsp文件添加到Assets文件夹中。mcs.rsp应该是一个包含以下行的文本文件:
-r:System.Security.dllhttps://stackoverflow.com/questions/43249281
复制相似问题