Build failed due to xml documentation error

I am trying to create an ASP.NET MVC 2 project that uses Lucene.Net. I am making a standard assembly definition in TFS 2010. When I queue a new assembly, it fails with this error:

CSC: Error creating XML documentation file 'xxx \ xxx \ Lucene.Net.xml' ('Access denied.')

But in my project properties for Lucene, I don't have validated XML comments. How can I get this to build correctly? I do not need XML document files!

+7
tfsbuild tfs2010
source share
2 answers

Got it. This is not verified in the configuration of the release build, and everything is in order.

+5
source share

I had the same problem. In my case, this was caused by the presence of bin \ Release \ [Assembly Name] .xml in Project Source Control. At the location of the data sources [Assembly Name] .xml was marked as readonly, but CSC could not redefine it.

The solution is to delete the [Assembly Name] .xml file from Source Control or set the Cloak in Workspace parameter to define Build.

+14
source share

All Articles