[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:
Tool

...gmcs execution started with arguments: /noconfig*
/debug:none*/optimize+ /out:obj/Release/Build.UpdateVersion.exe
Program.cs /target:exe
/define:TRACE
/reference:/Library/Frameworks/Mono.framework/Versions/3.2.1/lib/mono/2.0/System.dll
/warn:4

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

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
mcs/tools/xbuild/xbuild/Microsoft.CSharp.targets

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

<Csc
...
   DebugType="$(DebugType)"
   ....
>

----------

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

Full xbuild error..

http://www.pasteall.org/44840
-------------- 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