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.
Created attachment 7955 [details]
Test console project that illustrates the bug.
The following line does not parse correctly in XS 5.3 causing the file to be marked as invalid in XS.
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' Or '$(Configuration)|$(Platform)' == 'Debug|x64' ">
See Test1.csproj file included in Test1.zip for a standard console app whose Condition was modified to include an extra 'Or'.
I think the bug stems from this commit: https://github.com/mono/monodevelop/commit/a4d8bd1db31139f4b5eb1c0c90aa1041b6407247.
Note this works fine in 5.2.1, but fails to parse in 5.3.0 and 5.4.0
For a property group to be considered a valid configuration by Xamarin Studio it can only have one single condition. It worked by luck in previous releases. To fix it, you can add an empty configuration group like this:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' />
Visual Studio will load the .csproj file with multiple conditions and msbuild will build the project.
Perhaps this is not a regression, but a VS msbuild compatibility issue.
As per comment 1 closing this issue