Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9158835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:20:42+00:00 2026-06-17T13:20:42+00:00

From Miguel de Icaza : We use a library profile that is better suited

  • 0

From Miguel de Icaza:

We use a library profile that is better suited for mobile devices, so we removed features that are not necessary (like the entire System.Configuration stack, just like Silverlight does).

After years of .NET development, I’m accustomed to storing configuration settings in web.config and app.config files.

  • When using Mono for Android, where should I put my configuration settings?
    • If it matters, I’d like to store different configuration settings for different build configurations as well.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:20:43+00:00Added an answer on June 17, 2026 at 1:20 pm

    I would probably recommend using shared preferences and compilation symbols to manage different configurations. Below is an example of how you can use a preferences file to add or change keys based on the compilation symbols. Additionally, you could create a separate preferences file that is only available for a particular configuration. Because these keys are not available on all configurations, make sure to always perform checks for them before using.

    var prefs = this.GetSharedPreferences("Config File Name", FileCreationMode.Private);
    var editor = prefs.Edit();
    
    #if MonoRelease
    editor.PutString("MyKey", "My Release Value");
    editor.PutString("ReleaseKey", "My Release Value");
    #else
    editor.PutString("MyKey", "My Debug Value");
    editor.PutString("DebugKey", "My Debug Value");
    #endif
    
    editor.PutString("CommonKey", "Common Value");
    editor.Commit();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded the demo-repl.zip file from Miguel de Icaza's web site . I
I noticed on a recent video from Miguel that he was accessing MonoDoc with
From the manpage of the dbus-monitor command, I know that I can use some
From the Scala API , I got the following example, which does not compile;
From time to time I run into the issue that Grails integration tests the
From my experiences, in case of larger models, I found that Z3 takes a
From a lot of help here, I was able to use this code to
From a Basic macro, I launch a Python script that returns a json input
From what I understand there are 2* ways you can implement a function that
From reading a few questions and answers here, it seems that a telnet stream

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.