Mixing parts of MEF targeting .NET 3.5 with an application designed for .NET 4.0

The Managed Extensibility Framework is a standalone project (currently targeting .NET 3.5) and part of the .NET 4.0 environment.

Suppose I create assemblies designed for .NET 3.5 that contain MEF parts. These assemblies will reference the standalone version System.ComponentModel.Composition.dll.

Now suppose I am building a MEF-enabled application targeting .NET 4.0. This application will link to System.ComponentModel.Composition.dllthat comes with the .NET 4.0 platform. Will I be able to use the above parts of MEF in this application?

+3
source share
1

, , 3.5 System.ComponentModel.Composition.dll dropple , 4.0, CLR . , , .Net 4.0 System.ComponentModel.Compsition.dll /, , .NET 4.0.

+9

Source: https://habr.com/ru/post/1726532/


All Articles