【问题标题】:Error Id: CS0234, Error: The type or namespace name 'Xml' does not exist in the namespace 'System.Security.Cryptography'错误 ID:CS0234,错误:命名空间“System.Security.Cryptography”中不存在类型或命名空间名称“Xml”
【发布时间】:2012-12-09 06:38:20
【问题描述】:

我正在使用在线 IDE (http://www.frosthawk.net/) 来运行我的 C# 代码,并且在编译时出现错误

错误 ID:CS0234,错误:名称空间“System.Security.Cryptography”中不存在类型或名称空间名称“Xml”(您是否缺少程序集引用?),行:26,列:36

谁能告诉我如何使用在线 IDE 将此引用添加到我的代码中,因为我无法右键单击并添加我们过去通常执行的引用

    using System;
    using System.Security.Cryptography;
    using System.Security.Cryptography.X509Certificates;
    using System.Security.Cryptography.Xml;
    using System.Text;
    using System.Xml;

    public class SignVerifyEnvelope
    {

     public static void Main(String[] args)
    {
    try
    {

     ......

【问题讨论】:

标签: c# ide


【解决方案1】:

也许你错过了这个:

// 重要的使用方法:

// # 通过单击“参考”链接添加/管理参考

// # 通过单击“设置”链接管理您的构建设置

单击引用并修复您的引用。

如果您不确定需要哪个参考资料,您可能需要浏览 MSDN 寻求帮助。这里的参考是 System.Security 命名空间。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-24
    • 1970-01-01
    • 2019-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-02
    • 2012-10-13
    相关资源
    最近更新 更多