Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我添加对 Microsoft.Office.Interop.Word.dll 的引用并编译 C# 项目时,输出文件夹中会生成一个同名的 XML 文件。这个文件好像没有用。我删除了它,该项目仍然运行良好。
我想知道为什么 VS 会生成这个 XML 文件,它有什么用?
您引用的 XML 文件包含相关程序集的文档。如果有一个可用于引用的程序集,Visual Studio 会自动将 XML 文档文件复制到输出目录。
要解决此事实,请检查以下问题:
防止将引用的程序集 PDB 和 XML 文件复制到输出