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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:08:25+00:00 2026-06-02T04:08:25+00:00

Reading through this MSDN article http://msdn.microsoft.com/en-us/library/dd460648.aspx I’m seeing a claim that MEF doesn’t have

  • 0

Reading through this MSDN article http://msdn.microsoft.com/en-us/library/dd460648.aspx I’m seeing a claim that MEF doesn’t have a hard dependency on assemblies. I’m not exactly sure what this means because even though the contracts are strings, MEF still resolves by string, then by type. So both the host and extension assemblies need a reference to the contract assembly. Is this not a hard dependency?

The Managed Extensibility Framework or MEF is a library for creating
lightweight, extensible applications. It allows application developers
to discover and use extensions with no configuration required. It also
lets extension developers easily encapsulate code and avoid fragile
hard dependencies
. MEF not only allows extensions to be reused within
applications, but across applications as well.


Finally, the component developers must accept a hard dependency on
what assembly contains the interface they implement. This makes it
difficult for a component to be used in more than one application, and
can also create problems when you create a test framework for
components.


Because the MEF model requires no hard dependency on a particular
application assembly, it allows extensions to be reused from
application to application. This also makes it easy to develop a test
harness, independent of the application, to test extension components.

Can someone explain this to me? Maybe I misunderstand what a hard dependency really is?

  • 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-06-02T04:08:26+00:00Added an answer on June 2, 2026 at 4:08 am

    It’s saying that the only hard dependency (meaning that you explicitly reference the assembly) is on the assembly that defines your interface. The assemblies with specific implementations of that interface are not hard dependencies.

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

Sidebar

Related Questions

Have you used the Application Recovery APIs with vista? http://msdn.microsoft.com/en-us/library/aa373347(VS.85).aspx Do you find them
I saw this article pop-up in my MSDN RSS feed, and after reading through
Reading this MSDN article titled Working with ObjectSet (Entity Framework) It shows two examples
I'm reading through some MSDN example code on Composite controls and finding that there
I am using VS2010 and am working with this project. http://www.codeproject.com/KB/audio-video/Asio_Net.aspx Initially, I downloaded
I have been reading through this wonderful website regarding the recommended Python IDEs and
I was reading through this thread: Hidden Features of JavaScript? and found this post:
I've been reading through regex and I thought this would work but it doesn't
Can Any one help me reading this XML and Looping through <MedicationDispensed> I get
Reading through some of the questions here, the general concensus seems to be that

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.