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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:48:09+00:00 2026-05-22T02:48:09+00:00

I have a solution with multiple projects (a website and various other projects for

  • 0

I have a solution with multiple projects (a website and various other projects for DAL/BL etc). I’m trying to integrate Castle Windsor into the business logic to help me with writing some unit tests (I know unit tests and Castle Windsor should really be integrated before a project is finished, long story).

The problem I’m having is with the config files, I added the Castle Windsor config information to my BL projects app.config but when either the website or the unit tests (Both of which are in different projects) access the business logic Castle Windsor seems to look to at their own config files rather than the config file in the BL.

Surely I don’t have to add the config information to every project in my solution? That seems a bit pointless.

  • 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-22T02:48:10+00:00Added an answer on May 22, 2026 at 2:48 am

    That can be easier than you think. Configure Castle Windsor in an standalone configuration file, for example “Components.config” and place it in some common location.

    After that, you only need to add this file “as a link” in your projects. That’s achieved when you right-click in some folder or project and you choose “Add existing item”. In the file browser, check that in “Add” button there’s some arrow. Click there and choose “Add as a link”.

    You’ll notice that your configuration file icon in Solution Explorer has some arrow, like a Windows shortcut. Now click on this linked file and open its properties, and in “Build action” choose “Copy always”. That’s all!

    Don’t you know how to use standalone configuration files in Castle Windsor? Check this article:

    • http://www.castleproject.org/container/documentation/trunk/usersguide/externalconfig.html

    Note that now you edit one file and you affect all linked ones at once!

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

Sidebar

Related Questions

I have a solution which has multiple output projects (a website, and admin tool,
I have a solution made up of multiple projects which have various dependencies on
I have a solution with multiple projects and a website. On each project I
I have a solution with multiple projects. I am trying to use MSBUILD to
I have a solution with multiple projects and we need to do some serious
my solution has multiple projects and in one of them I have the code
If I have an existing solution containing multiple c# projects, are there any static
I have a solution in Visual Studio 2008 which has multiple projects. One of
I have a visual studio 2008 solution with multiple c# library projects, a Web
I have a huge solution with multiple projects. Sometime I need to navigate to

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.