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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:26:45+00:00 2026-05-20T00:26:45+00:00

I have three projects(C# libraries) namely A,B,C. All the 3 have 3-4 xml files(in

  • 0

I have three projects(C# libraries) namely A,B,C.
All the 3 have 3-4 xml files(in general can be resources) associated with them.
Each of these projects have classes that access these files for settings and information.
(loading xmls when ever they need)

The problems is sometimes there is a need that a class in project C may need to access
resources(xml files,images etc) of project B and vice versa.

Also these files may or may not be a part of the project solution.These resource paths
can come from app.config etc.

Its really becoming tedious to work out how to centralise access to these resources so that
all three projects can access them uniformly.

Currently all the projects load the files using app.config.

Also i’m trying to minimise the number of times a xml is loaded.(ideally once).
But given the projects are different i have to load it again.

I thought of using a Singleton class as it would make more sense for making uniform access but haven’t quiet figured out a way.

Anyone has come across similar situations?
Are there any design patterns or best practices for sharing resources across projects?

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

    Create one library containing the class(es) that access your centralized XML settings, and reference that library from the other libraries.

    You don’t necessarily need a Singleton for this, but putting it in one place will allow you to focus your efforts on things to improve it later, possibly caching, etc.

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

Sidebar

Related Questions

I'm working in VS 2008 and have three projects in one solution. I'm debugging
I have a Pocket PC 2003 solution, consisting of three projects, that was created
The scope of this is that we have three main projects. Some of the
I have a project which has shared functionality between three other projects and have
If all tables I want to delete from have the column gamer_id can i
In a visual studio project I have three layers, Data Layer, Business Layer and
I have 3 projects in my solution that I want to deploy. Is there
I have 3 projects in my solution that I want to deploy. Is there
In my project there are situations where we have to send xml messages (as
I'm sure you have all been there, you take on a project where there

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.