dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.17k stars 5.83k forks source link

MEF docs for .NET Core #7613

Open nathanaw opened 5 years ago

nathanaw commented 5 years ago

It seems like most documentation for MEF is related to .NET Framework. It would be very helpful to provide details on the state of the .NET Core implementation. What's supported? What's changed? What's the roadmap?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mairaw commented 5 years ago

@terrajobst is there any support or planned support for MEF on .NET Core?

terrajobst commented 5 years ago

MEF v1 is available for .NET Core/Standard via the System.ComponentModel.Composition NuGet package, which is also part of the Windows Compat Pack. However, MEF v1 also works cross-platform.

MEF v2 has always been available for .NET Core/Standard via the System.Composition NuGet package.

mairaw commented 5 years ago

Ok, thanks for the info @terrajobst. Our content on MEF is not extensive but this probably should be moved under the .NET Guide then since it's not Framework specific.

beautifullife commented 5 years ago

Nice Framework!

arieradle commented 4 years ago

Is there any up-to-date statement regarding MEF v1 lifecycle? Is it deprecated/EOL? Or is it still officially supported?

terrajobst commented 4 years ago

Same as the rest of .NET Core, so it's supported.

Boggin commented 4 years ago

System.Composition (MEF v2) is in need of some examples. In fact, it could do with some documentation on how to use it as there's none available.

GF-Huang commented 4 years ago

Any examples of System.Composition (MEF v2) ? I have read this article. The ConventionBuilder is inside System.Composition.Convention namespace. How about the others ? Can anyone tell me which namespaces are involved in v2?

githubavi commented 4 years ago

Even I am looking to have some documentation or samples of it's usage in .NET Core 2x or 3x. I have found something in this link - https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support. Not sure if MEF team has any other roadmap for .NET core

endintiers commented 4 years ago

https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support is about using .NET Core DI - it doesn't use system.composition (MEF V2)

talynone commented 4 years ago

Here's some migration docs from MEF V1 to MEF V2 I found:

https://blog.softwarepotential.com/porting-to-net-standard-2-0-part-2-porting-mef-1-0-to-mef-2-0-on-net-core/

WonkySoft commented 4 years ago

I have to second that MEF v2 docs are seriously lacking.

Is there at least comprehensive example code put out by Microsoft somewhere?

ricardok1 commented 3 years ago

Any update on docs?

dotnet-bot commented 3 years ago

This issue has been closed as part of the issue backlog grooming process outlined in #22351.

That automated process may have closed some issues that should be addressed. If you think this is one of them, reopen it with a comment explaining why. Tag the @dotnet/docs team for visibility.

chances commented 3 years ago

@dotnet Please reopen this. I'd like to see proper documentation for MEF in modern .NET

BillWagner commented 3 years ago

reopening per comment.