我要读一个签名的XML与类型或命名空间名称'的Xml“不存在命名空间'存在System.Security.Cryptography”
Using System.Security;
System.Security.Cryptography.Xml.SignedXml signedXml = new System.Security.Cryptography.Xml.SignedXml(lic);
首先团结/ VS抱怨
VS>错误11类型或命名空间名称
Xml' does not exist in the namespace
System.Security.Cryptography'。您是否缺少 程序集参考?
所以我在Visual Studio中加入System.Security的引用(C:\ WINDOWS \ Microsoft.NET \框架\ V2.0.50727 \ System.Security.dll)...但团结不断抱怨
错误CS0234:类型或名称空间名称
Xml' does not exist in the namespace
System.Security.Cryptography'。您是否缺少装配 参考?
然后,我试图直接复制'System.Security.dll'内的资产文件夹...但仍然是相同的消息!
我在做什么错误?必须做些什么? 非常感谢!
尼卡, 非常感谢您的帮助! 我按照你的建议做了,它的工作原理! ...但我不得不在项目资产文件夹中添加一个'mcs.rsp'文件,其中包含'-r:System.Security.dll'! 再次感谢! – Jayme
@ user2737085很酷,我为未来的灵魂编辑了答案 –