开发者

Build fails because of xml documentation error

I am trying to build a ASP.NET MVC 2 project that uses Lucene.Net. I make a standard build definition in TFS 2010. When I queue a new build, it fails on this error:

CSC: Error generating XML documentation file 'xxx\xxx\Lucene.Net.xml' ('Access is denied. '开发者_JAVA技巧)

But in my project properties for Lucene, I don't have xml comments checked. How can I get this to build correctly? I don't care about xml document files!


I had the same problem. In my case it was caused by having bin\Release\[Assembly Name].xml in project Source Control. In build Sources location the [Assembly Name].xml was marked as readonly and CSC cannot override it.

Solution is to remove [Assembly Name].xml file from Source Control, or set Cloak in Workspace option of Build definition.


Got it. Unchecked it on release build config, and all is fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜