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

  • Home
  • SEARCH
  • 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 3236348
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:36:42+00:00 2026-05-17T17:36:42+00:00

I have a C# WPF application that use several library assemblies. I was wondring

  • 0

I have a C# WPF application that use several library assemblies.

I was wondring if there was a way to change the key ‘applicationSettings’ in the app.config file and still allowing VisualStudio 2010 to manage the settings in the project tab.

These library assemblies that the default settings in the project tab of VisualStudio. They all work fine and the client is happy with all of this but they want to use the tag instead of in the app.config.

When I just change applicationSettings to CompanyName, VisualStudio just re-adds applicationSettings and then there are two sections, applicationSettings and CompanyName. The app uses the new applicationSettings settings. So this is not a solution.

I’ve changed one assembly to derive a settings class from ConfigurationSection and I can make it work but I would have to change the code in every assembly.

I wouldn’t have to change every assembly if I could just tell VS2010 to use a different key name. Can anyone help?

TIA,
T.

  • 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-05-17T17:36:42+00:00Added an answer on May 17, 2026 at 5:36 pm

    The config file and the project tab data correspond to a built in applicationSettings class that gets serialized to the config file then deserialized when the application loads. You cannot override this serialization.

    As you discovered, in order to serialize your own settings, you need to derive a class form ConfigurationSection and give it its own name.

    This is the correct way to add and use custom configuration section, no way around it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my WPF application, I use Routed Commands quite often, since there are several
I have a WPF application that runs fine under XP as an administrator. When
I have written a WPF application that I want to port to Silverlight 2.
I have a simple message box in a WPF application that is launched as
I have a C# (2008/.NET 3.5) class library assembly that supports WPF (based on
In a MVVM WPF application, I have a master-detail View that is used to
I have a WPF application that kicks off 3 threads and needs to wait
I have wrote a WPF application that reads a list of movies from a
I have a WPF application, that I want to port to Linux/Mac. The most
I have a WPF application with form that has a textbox named txtStatusWindow. I

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.