[Mono-list] xbuild generating invalid /debug:none flag and error..

David Jeske davidj at gmail.com
Thu Aug 15 08:01:12 UTC 2013

I'm getting an xbuild error because xbuild is generating the invalid
compiler flag "/debug:none". However, I don't know where this is being
generated. Is this something in my project's build template, xbuild
templates, xbuild code, elsewhere?

Target CoreCompile:

...gmcs execution started with arguments: /noconfig*
/debug:none*/optimize+ /out:obj/Release/Build.UpdateVersion.exe
Program.cs /target:exe

: error CS1902: *Invalid debug option `none'*. Valid options are `full' or

Task "Csc" execution -- FAILED

I suspect this is because somehow DebugType is being mapped directly into
/debug:${DebugType}, which is not valid... It should be...

DebugType=none  ->   /debug-    (or no flag)
DebugType=pdbonly -> /debug:pdbonly
DebugType=full  -> /debug:full

These lines look related, in

  <DebugSymbols Condition=" '$(DebugType)' == 'none' ">false</DebugSymbols>
  <DebugType    Condition=" '$(DebugType)' == 'none' "></DebugType>



XBuild Engine Version
Mono, Version
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.

Full xbuild error..

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130815/a8c2a61a/attachment.html>

More information about the Mono-list mailing list