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
<PackageReference Include="Autofac.Mef" Version="7.0.0" />
paket add Autofac.Mef --version 7.0.0
#r "nuget: Autofac.Mef, 7.0.0"
// 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.
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 | Versions 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. |
-
.NETStandard 2.0
- Autofac (>= 8.0.0)
- System.ComponentModel.Composition (>= 8.0.0)
-
net6.0
- Autofac (>= 8.0.0)
- System.ComponentModel.Composition (>= 8.0.0)
-
net7.0
- Autofac (>= 8.0.0)
- System.ComponentModel.Composition (>= 8.0.0)
-
net8.0
- Autofac (>= 8.0.0)
- System.ComponentModel.Composition (>= 8.0.0)
NuGet packages (16)
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 | 18,122 | 3/7/2024 |
6.1.0 | 72,333 | 9/30/2022 |
6.0.1 | 102,715 | 8/20/2021 |
6.0.0 | 415,989 | 9/30/2020 |
5.0.0 | 286,316 | 1/30/2020 |
4.1.0 | 134,270 | 9/10/2019 |
4.0.0 | 1,326,185 | 9/11/2015 |
3.0.3 | 387,720 | 3/27/2014 |
3.0.2 | 8,231 | 10/23/2013 |
3.0.1 | 31,098 | 4/9/2013 |
3.0.0 | 7,917 | 1/30/2013 |
3.0.0-beta2 | 1,273 | 12/23/2012 |
3.0.0-beta | 1,552 | 11/1/2012 |
2.6.3.862 | 3,534 | 6/20/2012 |
2.6.2.859 | 1,764 | 6/7/2012 |
2.6.1.841 | 2,145 | 3/5/2012 |
2.5.2.830 | 7,703 | 8/12/2011 |
2.5.1.827 | 2,000 | 7/10/2011 |
2.4.5.724 | 2,302 | 3/12/2011 |
2.4.4.705 | 2,551 | 2/6/2011 |
2.4.3.700 | 2,690 | 1/30/2011 |
2.4.2.696 | 2,994 | 1/24/2011 |
Release notes are at https://github.com/autofac/Autofac.Mef/releases