VS2010:自动生成的XML文档文件不会更新 [英] VS2010: Autogenerated XML documentation file does not update

查看:657
本文介绍了VS2010:自动生成的XML文档文件不会更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2010 C#项目生成一个XML文档文件,在那里我已经设置了生成的文件到项目输出路径的输出路径。

I have a C# project in vs2010 that generates a XML documentation file, where I have set the output path of the generated file to the project output path.

我的问题是,当路径的文档文件是相同的项目输出路径,和文件名是相同的(除了文件扩展名)的文件不更新

My problem is that the file does not update when the path to the document file is the same as project output path, and the file names are the same (except for the file extensions).

请问的的更新XML文件:

Does not update XML file:


  • C:\MyProjectFolder\MyProject.dll

  • C:\MyProjectFolder\MyProject.xml
    (文档文件)

但是当我改变任何一个到另一个文件夹或更改文件的文件名,正确生成文件

But when I change either to another folder or change the documentation file name, the file is generated correctly.

是否的更新XML文件:


  • C:\MyProjectFolder\MyProject.dll

  • C:\AnotherFolder\MyProject。 XML

也同时更新XML文件


  • C:\MyProjectFolder\MyProject.dll

  • C:\MyProjectFolder\AnotherFileName.xml

或更正确;当路径和文件名是一样的,在第一个例子中,该文件的的再生,但与老信息和旧修改的时间戳

Or more correctly; when the path and file name is the same as in the first example, the file is regenerated, but with old info and old modified time stamp.

在2008年曾VS之前,我不想改变文件名或路径,因为其他依赖于它。

It worked before in VS 2008, and I don't want to change the file name or path because others depend on it.

这是什么可能是错的任何建议?
难道是被复制的临时文件? ?也许有些缓存可以在VS 2010中的文件夹被清除

Any suggestions on what might be wrong? Could it be a temporary file that is copied? Maybe some cache could be cleared in VS 2010 folder?

附加信息:我注意到,如果原始XML文档文件被删除,然后一个新的名字在指定项目属性,生成新的XML文档,正确的和最新的,但与旧名称的旧XML文件重新过 - 仍处于以前的状态。这必须被缓存的地方...

ADDITIONAL INFORMATION: I have noticed that if the original XML Documentation file is deleted, and then a new name specified in the project properties, the new XML Documentation is generated and is correct and up to date, but the old XML file with the old name is recreated too - still in its previous state. This must be cached somewhere...

推荐答案

我使用VS 2010和XML文档正确再生每个版本。我准备示例项目,可以检查该文件被更新各建太多: HTTP: //dl.dropbox.com/u/9287830/TestXmlDoc.zip

I use VS 2010 and xml documentation is regenerated correctly on each build. I've prepared sample project, you can check that documentation is updated on each build too: http://dl.dropbox.com/u/9287830/TestXmlDoc.zip

即使是简单的重建力量的文件更新。如果修改类的描述,重建你也应该得到与更新描述XML。

Even simple rebuild force file update. If you modify class description and rebuild you should also get xml with updated description.

这篇关于VS2010:自动生成的XML文档文件不会更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆