![]() |
VOOZH | about |
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" />
<PackageVersion Include="Autofac.Mef" Version="7.0.0" />Directory.Packages.props
<PackageReference Include="Autofac.Mef" />Project file
paket add Autofac.Mef --version 7.0.0
#r "nuget: Autofac.Mef, 7.0.0"
#:package Autofac.Mef@7.0.0
#addin nuget:?package=Autofac.Mef&version=7.0.0Install as a Cake Addin
#tool nuget:?package=Autofac.Mef&version=7.0.0Install as a Cake Tool
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.
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.
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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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 |
|
|
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+. |
|
|
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. |
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 | 188,841 | 3/7/2024 |
| 6.1.0 | 100,634 | 9/30/2022 |
| 6.0.1 | 149,207 | 8/20/2021 |
| 6.0.0 | 678,498 | 9/30/2020 |
| 5.0.0 | 342,253 | 1/30/2020 |
| 4.1.0 | 212,468 | 9/10/2019 |
| 4.0.0 | 1,527,239 | 9/11/2015 |
| 3.0.3 | 440,591 | 3/27/2014 |
| 3.0.2 | 12,075 | 10/23/2013 |
| 3.0.1 | 33,823 | 4/9/2013 |
| 3.0.0 | 10,588 | 1/30/2013 |
| 3.0.0-beta2 | 1,748 | 12/23/2012 |
| 3.0.0-beta | 2,012 | 11/1/2012 |
| 2.6.3.862 | 4,057 | 6/20/2012 |
| 2.6.2.859 | 2,262 | 6/7/2012 |
| 2.6.1.841 | 2,645 | 3/5/2012 |
| 2.4.5.724 | 2,821 | 3/12/2011 |
| 2.4.4.705 | 3,130 | 2/6/2011 |
| 2.4.3.700 | 3,275 | 1/30/2011 |
| 2.4.2.696 | 3,780 | 1/24/2011 |
Release notes are at https://github.com/autofac/Autofac.Mef/releases