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 1612 [details]
Sample project to see the problem...
When I have embedded js files in my project I put the minified and the plain version under different ItemGroups in the project file and add some conditions to embed them only with the right dll.
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
(see http://msdn.microsoft.com/en-us/library/646dk05y.aspx for schema details)
When compiling from VS2010 it works perfect, however when compiling from MonoDevelop it always include both minified and plain files...
MonoDevelop's internal build engine has limited support for evaluating MSBuild conditions on items, but not item groups. We have no plans to add this feature to the MD internal build engine.
In future we plan to migrate to the "real" MSBuild build engine, which will fix it. This is available as an experimental option in the Preferences->Build options panel - it does not yet work for all project types.
I've checked in version 220.127.116.11 and worked perfectly.
How this will work on Linux? There is no .NET framework installation there...
Mono has an MSBuild implementation called "xbuild", and MD can use that.
Just for information...
Compile as expected...