Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppDomain.CurrentDomain.SetData does not work with property APP_CONFIG_FILE #10584

Open
macro187 opened this issue Sep 13, 2018 · 0 comments
Open

Comments

@macro187
Copy link

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


Paul Zander 2013-10-28 09:07:46 UTC

Mono version: 3.2.3

If the domain property APP_CONFIG_FILE is set, the name of the configuration file is not changed.
Test code:

  // Set the APP_CONFIG_FILE property:
  AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", "C:\\test.exe.config");
  // Retrieve the ConfigurationFile
  string config = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
  Console.WriteLine("ConfigurationFile = {0}", config);

This behaviour is different from the behaviour of Miscrosoft .NET.


Chris Hamons 2015-02-23 12:11:54 UTC

This is a bug in the mono class library / runtime, not in Xamarin.Mac. I've moved it to the correct group.

Apologies on the very long delay in response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants