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

The Archive Base Latest Questions

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

In my solution I have several library projects. I want that each library project

  • 0

In my solution I have several library projects.
I want that each library project will make some initialization when application start.

I know I can do it using static class and static method, but I don’t know if this is the best solution.

Those libraries can be used in web application or in win application.

What is the best way to do so?

EDIT:
Example: “Common” project referenced by “Transmissions” projects.
“Common” defines a structure of alerts that allows registrations. In application initialization, I want the “Transmissions” to registar its own alerts in the alerts structure of “Common”.

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

    I would recommend using something like Managed Extensibility Framework and then you can create an interface that contains an Initialize method, when your application starts up you would use MEF to get all of the available libraries and call their Initialize method. This is a lot more flexible and lets you add and remove new components in the future.

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

Sidebar

Related Questions

I have several web application projects in one solution. When I start debugging one
In a .net application involving several projects in one solution, I have a project
I have a solution that links to several library projects located elsewhere on my
I have a solution consisting of several library project and one application project. I
I have several projects and a website in a large asp.net solution. In some
I have a solution with several projects. One of them is a setup project.
I have a solution with several projects, where the startup project has a post-build
I have a solution containing several projects that have migrated from VS 2003, 2005,
I have a Visual Studio solution that comprises of several projects and are separated
I Have a Solution, in this solution there are several projects. One project (main

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.