Bug 2612 - MonoDevelop lowercases booleans in msbuild files
Summary: MonoDevelop lowercases booleans in msbuild files
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: unspecified
Hardware: Other Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2011-12-22 12:25 UTC by Aaron Bockover
Modified: 2013-02-10 17:29 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description Aaron Bockover 2011-12-22 12:25:45 UTC
When MonoDevelop writes out an msbuild/csproj file it serializes boolean values in lower case ("true" and "false"). Visual Studio serializes with the first letter capitalized ("True" and "False").

This is a constant annoyance with diffs/git in a team working in a mixed MD/VS environment.
Comment 1 Aaron Bockover 2011-12-22 12:30:03 UTC
In a related note, MD should generally not make any changes at the file level to XML nodes that it has not actually modified. All XML formatting (nodes, attributes, values) should be preserved. Changes it does write out should syntactically match VS.
Comment 2 Mikayla Hutchinson [MSFT] 2011-12-22 13:28:14 UTC
The reason we can't just alter individual nodes is because of a historical design decision to serialize/deserialize the existing MonoDevelop project object model.
Comment 3 Aaron Bockover 2011-12-22 14:50:31 UTC
I'll open another bug to discuss general serialization issues. Let's let this bug be strictly about changing the serialization of boolean: true->True, false->False.

csharp> Boolean.Parse ("true").ToString ();
"True"
Comment 4 Aaron Bockover 2012-02-14 17:39:39 UTC
Any update on this?
Comment 5 Lluis Sanchez 2012-06-18 12:06:51 UTC
Fixed in master.
Comment 6 Tom Spilman 2013-02-10 17:29:25 UTC
I suspect this bug report was incorrect and caused a bad change to MonoDevelop.

From my tests Visual Studio 2010 and 2012 always use lowercase 'true' 'false' in new projects created from stock templates and after modifications are made and saved.

See this other bug reported after this change was made:

https://bugzilla.xamarin.com/show_bug.cgi?id=7914