【发布时间】:2015-10-28 09:54:04
【问题描述】:
我正在尝试向我编写的旧程序添加新功能。但是,当试图让程序在 VS express 中构建时,它会向我返回一条错误消息。
错误 1 类型“System.Xml.Serialization.IXmlSerializable”是 在未引用的程序集中定义。您必须添加一个 引用程序集 'System.Xml,版本 = 4.0.0.0,文化 = 中性, PublicKeyToken=b77a5c561934e089'。 C:\Path\To\File\summaryForm.cs 101 18 串行控制器
然而东西在cs文件的顶部,它有
using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.Xml;
任何想法为什么它不能识别 XML 引用?
【问题讨论】:
-
您有正确的 using 语句,但您的项目引用中是否确实引用了 System.Xml dll?
标签: c# xml visual-studio-2012 compiler-errors