Bug 1412 - Serializer keeps on discarding env vars from custom commands
Summary: Serializer keeps on discarding env vars from custom commands
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: PC Windows
: Low normal
Target Milestone: (C7)
Assignee: Lluis Sanchez
: 5785 ()
Depends on:
Reported: 2011-10-11 06:56 UTC by Mikayla Hutchinson [MSFT]
Modified: 2016-02-23 16:55 UTC (History)
2 users (show)

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:

Description Mikayla Hutchinson [MSFT] 2011-10-11 06:56:26 UTC
If custom execution commands have env vars elements edited into the file by hand, MD removes them when saving the project:

-        <Command type="Execute" command="..\..\..\monodevelop\main\build\bin\MonoDevelop.exe" workingdir="..\..\..\monodevelop\main\build\bin">
-          <EnvironmentVariables>
-            <Variable name="MONODEVELOP_DEV_ADDINS" value="${TargetDir}" />
-          </EnvironmentVariables>
-        </Command>
+        <Command type="Execute" command="..\..\..\monodevelop\main\build\bin\MonoDevelop.exe" workingdir="..\..\..\monodevelop\main\build\bin" />
Comment 1 Lluis Sanchez 2015-07-02 10:31:13 UTC
*** Bug 5785 has been marked as a duplicate of this bug. ***
Comment 2 xamarin-release-manager 2016-02-23 16:45:57 UTC
Fixed in version (master)

Author: Matt Ward
Commit: 53fde17a69891779b74ca1409201c51e8e945806 (mono/monodevelop)
Comment 3 xamarin-release-manager 2016-02-23 16:55:02 UTC
Fixed in version (cycle7)

Author: Matt Ward
Commit: d52a08926557e8049452b04da650d663594b27bc (mono/monodevelop)