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                

Autofac.Mef

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");
builder.RegisterComposablePartCatalog(catalog);
builder.RegisterType<Component>()
       .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.Extras.AttributeMetadata

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

BumperLane.Tenant.Api.Framework

Framework for BumperLane API sites

Autofac.Extras.Attributed

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

TouchConvert.Tenant.Api.V1.Dtos

Data transfer objects for TouchConvert version one APIs.

Vault.MVC.V

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
scriptcs/scriptcs
Write C# apps with a text editor, nuget and the power of Roslyn!
Code52/pretzel
A site generation tool (and then some) for .NET platforms
daxnet/we-text
WeText is a sample application that demonstrates the implementation of DDD/CQRS and microservice architectural patterns in C#.
mmbot/mmbot
A C# port of Hubot
Version Downloads Last updated
7.0.0 5,497 3/7/2024
6.1.0 59,608 9/30/2022
6.0.1 92,501 8/20/2021
6.0.0 375,965 9/30/2020
5.0.0 273,504 1/30/2020
4.1.0 121,725 9/10/2019
4.0.0 1,283,204 9/11/2015
3.0.3 376,512 3/27/2014
3.0.2 8,155 10/23/2013
3.0.1 30,530 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
2.6.3.862 3,509 6/20/2012
2.6.2.859 1,744 6/7/2012
2.6.1.841 2,118 3/5/2012
2.5.2.830 7,490 8/12/2011
2.5.1.827 1,987 7/10/2011
2.4.5.724 2,278 3/12/2011
2.4.4.705 2,518 2/6/2011
2.4.3.700 2,655 1/30/2011
2.4.2.696 2,946 1/24/2011