Bug 36331 - mmp does not write out a machine.config file, results in console spew
Summary: mmp does not write out a machine.config file, results in console spew
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: mmp ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: 2.8.0 (C7)
Assignee: Chris Hamons
Depends on:
Reported: 2015-11-28 16:01 UTC by Aaron Bockover [MSFT]
Modified: 2015-12-08 16:06 UTC (History)
1 user (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 Aaron Bockover [MSFT] 2015-11-28 16:01:13 UTC
Conservatorio can be run as a console or a GUI application. In the case of a console application, the first thing a user will see is a warning message stating that no machine.config could be loaded.

The launcher should either not care about this, or mmp should write out an empty machine.config if one was not otherwise specified. By default, one is not specified, nor is one written out to the bundle.

I have had to employ a hack to generate my own empty machine.config in order to suppress the warning on the console:

  <Target Name="CustomizeAppBundle" AfterTargets="_CreateAppBundle">
    <Exec Command="touch &quot;$(AppBundleDir)/Contents/MonoBundle/machine.config&quot;" />

Comment 1 Chris Hamons 2015-11-30 17:04:49 UTC
This is rather annoying. My initial opinion is to remove the warning. It is literally useless for users, but I'm not 100% sure.
Comment 2 Chris Hamons 2015-12-08 16:06:20 UTC
It appears fixed in master:


when I apply this patch to the sample to remove the work around:


Please reopen if I'm missing something.