Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build fails because of xml documentation error

Tags:

tfsbuild

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. ')

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!

like image 503
Rick Rat Avatar asked Sep 01 '10 20:09

Rick Rat


2 Answers

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.

like image 170
HolaJan Avatar answered Nov 20 '22 20:11

HolaJan


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

like image 7
Rick Rat Avatar answered Nov 20 '22 18:11

Rick Rat