Autofac.Mef 7.0.0

Prefix Reserved
dotnet add package Autofac.Mef --version 7.0.0                
NuGet\Install-Package Autofac.Mef -Version 7.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Autofac.Mef" Version="7.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Autofac.Mef --version 7.0.0                
#r "nuget: Autofac.Mef, 7.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Autofac.Mef as a Cake Addin
#addin nuget:?package=Autofac.Mef&version=7.0.0

// Install Autofac.Mef as a Cake Tool
#tool nuget:?package=Autofac.Mef&version=7.0.0                


Managed Extensibility Framework (MEF) integration for Autofac.

Build status

Please file issues and pull requests for this package in this repository rather than in the Autofac core repo.

Quick Start

The Autofac/MEF integration allows MEF catalogs to be registered with the ContainerBuilder using the RegisterComposablePartCatalog() extension method. If you register a component using MEF and want to provide Autofac components into that MEF component, use the Exported() extension.

var builder = new ContainerBuilder();
var catalog = new DirectoryCatalog(@"C:\MyExtensions");
       .Exported(x => x.As<IService>().WithMetadata("SomeData", 42));

Check out the Autofac MEF integration documentation for more information.

Get Help

Need help with Autofac? We have a documentation site as well as API documentation. We're ready to answer your questions on Stack Overflow or check out the discussion forum.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (18)

Showing the top 5 NuGet packages that depend on Autofac.Mef:

Package Downloads

Autofac allows you to register metadata along with dependencies for additional resolution flexibility. This extension enables that metadata to be registered through attributes.


Framework for BumperLane API sites


Autofac allows you to register metadata along with dependencies for additional resolution flexibility. This extension enables that metadata to be registered through attributes.


Data transfer objects for TouchConvert version one APIs.


Part of Vault libraries set designed to enhance usability of ASP.NET MVC 5+.

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on Autofac.Mef:

Repository Stars
Write C# apps with a text editor, nuget and the power of Roslyn!
A site generation tool (and then some) for .NET platforms
WeText is a sample application that demonstrates the implementation of DDD/CQRS and microservice architectural patterns in C#.
A C# port of Hubot
Version Downloads Last updated
7.0.0 4,970 3/7/2024
6.1.0 58,796 9/30/2022
6.0.1 92,037 8/20/2021
6.0.0 373,853 9/30/2020
5.0.0 272,857 1/30/2020
4.1.0 121,523 9/10/2019
4.0.0 1,281,508 9/11/2015
3.0.3 375,872 3/27/2014
3.0.2 8,153 10/23/2013
3.0.1 30,519 4/9/2013
3.0.0 7,691 1/30/2013
3.0.0-beta2 1,247 12/23/2012
3.0.0-beta 1,543 11/1/2012 3,505 6/20/2012 1,744 6/7/2012 2,118 3/5/2012 7,490 8/12/2011 1,987 7/10/2011 2,277 3/12/2011 2,517 2/6/2011 2,654 1/30/2011 2,945 1/24/2011