Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Build error from blank test project:
error CS1902: Invalid debug option `+'. Valid options are `full' or `pdbonly'
When using MD 2.8.6 and the latest (master) of mono, the compiler will throw a CS1902 error when compiling a project set to emit debugging information.
A /debug:+ argument is passed to the compiler, causing this error. The proper /debug:full is also passed.
Here's an example of a portion of the arguments to dmcs:
/nologo /warn:4 /debug:+ /debug:full /optimize-
In addition, if I enable xbuild integration, this problem goes away. (I had to restart MD to get the xbuild integration to take effect).
$: mono --version
Mono JIT compiler version 2.11 (master/88fde5a Fri Feb 10 12:54:18 EST 2012)
Copyright (C) 2002-2011 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
I can replicate this problem by creating a brand new console C# project and compiling it in debug with no changes.
This prevents any projects being built on MonoDevelop at all.
Created attachment 1350 [details]
Already fixed. I cherry-picked the fix to the master branch as well.