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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:16:24+00:00 2026-05-24T05:16:24+00:00

I have a framework which contains several assemblies. Multiple assemblies was created due to

  • 0

I have a framework which contains several assemblies. Multiple assemblies was created due to logical separation of code. This framework is supposed to be distributed to developer as well as end user. Developer are supposed to use few of framework assemblies to develop their modules. But all other assemblies are required to run the modules. Out of several assemblies, I want only few assemblies could be added to project reference and restrict other from being added to developer project references. In other words, I want developer should not be able to use types contained in assemblies which are not meant for plugin development. What is the best way to do that? I want to avoid passing some object to constructor of each type in those assemblies and verify them.

Can I take advantage of AppDomain or anything similar to that, which identifies type is being created by main app or module. If it is not main app, then throw exception or don’t initialize. Any change in architecture is suggested.

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

    One option would be to make the types within the “restricted” assemblies internal instead of public, then add InternalsVisibleToAttribute within those restricted assemblies to allow access to them from the other “framework” assemblies.

    That way the end developer can still add a reference to the “restricted” assemblies (and probably should do so, in order to make sure they’re copied for deployment) but won’t be able to use any of the types within those assemblies.

    EDIT: Another alternative might be to use ILMerge to build one assembly at the end – so it’s a real unit of deployment, even though you originally split it out for separation reasons.

    Yet another alternative would be to merge everything into one project and rely on code review, namespaces and common sense to pick up separation violations.

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

Sidebar

Related Questions

I have designed a database for an application which contains user settings. This database
I have a solution which contains 18 projects and targets framework 3.5. It also
I have Entity Framework entities Events which have an EntityCollection of RSVP. I want
I have an ASP.NET Dynamic Data application (using Entity Framework) in which I have
I have a PHP5/Zend Framework 1.8.1 web site which is located at: http://www.example.com/foo The
I have a custom built application framework written in PHP which I have been
I have been working on test framework, which creates a new app domain to
One thing with which I have long had problems, within the CakePHP framework, is
I have the following table structure, which is imported into an Entity Framework project:
In the ADO.Net Entity Framework, I have an object which has 4 references 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.