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 6177091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:12:44+00:00 2026-05-24T00:12:44+00:00

My question is on config files, or dll.config for a class library project (dll).

  • 0

My question is on config files, or dll.config for a class library project (dll). Does the dll have to be compiled for the changes in the config file to take affect?

The problem I’ve noticed is that I add a reference to another solution to my dll, and it still has a connection string that points to the test database, even though I’ve updated it in the config file.

If it does have to be compiled, what’s the point of having a config file?

  • 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-24T00:12:45+00:00Added an answer on May 24, 2026 at 12:12 am

    DLL’s (Class Libraries) don’t use config files. You’ll need to set the configuration data via the application’s config file.

    You could, if you really want to, have a class library use a config file, but I don’t think that’s best practice and kind of defeats the purpose of the class library, IMO.

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

Sidebar

Related Questions

I have a separate project with .resx files compiled into a standalone DLL assembly,
I have enabled GZip compression via web.config with many helps from another question: Enable
Possible Duplicate: Reading dll.config (not app.config!) from a plugin module. I have two different
I have a dll-type project that contains MSTest integration tests. On my machine the
After creating settings for each dll , a .dll.config file is generated. If that
Question We have a large number of xml configuration files that we want merged
I have made a .NET class library in C# that initializes some logging, sent
We have a web application with 2 web.config files. I'm using the telerik:RadScriptManager control
In my project, I have a problem with its dependency hierarchy. I use a
There are questions pertaining to reading settings from a separate config file and others

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.