[Mono-list] xbuild and 'treat warnings as errors'

Jeff Holt jeff.holt at hotsos.com
Wed Jan 9 16:10:46 EST 2008


I am trying to build from a .NET csproj on linux. I can't get xbuild to
give gmcs the /warnaserror option.

 

I found references for the CodeAnalysisTreatWarningsAsErrors property
but my attempts to use it have all failed to induce the desired
behavior.

 

Here's what I've tried:

 

1.	add
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErro
rs> to the csproj file
2.	execute xbuild with the option
/property:CodeAnalysisTreatWarningsAsErrors=true

 

I have to use xbuild because the developers and the windoze build
process use msbuild. So manually executing gmcs is not an option. I have
to use the provided csproj file.

 

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080109/ecc7c690/attachment.html 


More information about the Mono-list mailing list