mef Questions

30

Solved

I wish to test the core class of a plugin by directly referencing the plugin project and instantiating the plugin class. When I create a test Console App project and add a project reference to the ...
Lorilee asked 25/11, 2013 at 6:40

0

I've been working in an app that'll be fully extensive as it should implements a plugins system (quite a few contracts in the same app) My preoccupation is about using MEF (Managed Extensibility Fr...
Offset asked 9/12, 2021 at 7:22

1

Solved

I'm trying to get the active C# Editor IWpfTextView in VS2019 extension. I'm using a small MEF service to inject a view into the VSAsyncPackage. But it is not very reliable - sometimes the injected...
Burmeister asked 26/12, 2020 at 3:22

1

We are using MEF in a WPF application. And we are getting this error: GetExportedValue cannot be called before prerequisite import 'MyNamespace.MyMainClass..ctor (Parameter="myParameter", Cont...
Gird asked 23/1, 2014 at 13:24

4

Solved

Version Info: I am using C# 4.5, Entity Framework 6.0, and MEF. Code and Unit Test I created a Test Project to explain the problem: https://skydrive.live.com/redir?resid=E3C97EC293A34048!2234 P...
Nadbus asked 26/10, 2013 at 17:56

4

Solved

I'm trying to run PRISM (MEF) example project, but get this error: Managed Debugging Assistant 'BindingFailure' has detected a problem in 'Prism4MefDemo.vshost.exe'. Additional information: ...
Pouliot asked 10/3, 2014 at 15:22

2

Solved

OK I'm pretty sure this is something blindingly obvious but I'm not finding it. I'm trying to export a object from MEF container based on it's Metadata. I've seen this done in tutorials like this...
Cultured asked 5/10, 2011 at 14:9

1

I'm thinking about a new mobile/tablet application. I want to allow the users to develop their own plugins. Imagine a cash desk application running on a Android tablet. The user could use many al...
Slipover asked 19/12, 2016 at 5:39

4

Solved

I can't solve what seems to be a basic MEF problem: I have 2 "plugins" project (which we'll call P1 and P2), and a third project that is common to both plugins (which we'll call C). P1 and P2 both ...
Alcaide asked 13/9, 2012 at 8:16

1

Solved

I have a problem with MEF and using a plugins folder. I have a main app that supports plugins via MEF. The main app does not reference the assemblies containing the .NET Task type for multithreadi...
Niobic asked 17/1, 2015 at 22:0

2

Solved

I am using MEF to create "plugins" for my WPF application. Some of these plugins I want to embed directly into the EXE file as the EXE needs to be standalone. I am using Costura by Fody to embed th...
Diligence asked 7/9, 2016 at 11:14

3

I have a UserControl I've created which imports several parts using the [Import] attribute. public class MyUserControl : UserControl, IPartImportsSatisfiedNotification { [Import] public IService...
Disharoon asked 29/12, 2011 at 12:39

4

Solved

I have just started using MEF and have hit on an early problem. I have an interface called DataService: namespace DataAccess { interface IDataService { string Name { get; } string Description...
Anastatius asked 17/10, 2010 at 21:27

6

Solved

How does one integrate Managed Extensibility Framework (MEF) with ASP.NET MVC 4 and ASP.NET Web API in the same project? Consider an example application, with an MVC controller HomeController and ...
Vignette asked 26/11, 2012 at 14:17

4

Solved

Please help - I'm getting lost! I'm writing a small desktop application which has some controls and some screen. This should later be integrated with a small web site, also having some screens. Th...
Sid asked 29/5, 2012 at 12:24

4

I was refering MSDN tutorial on weak events. I understood the basics. I am working on a non-WPF project and my class is exposing certain events. My question is that does the weak events completely...
Tantalous asked 9/12, 2012 at 15:26

2

Solved

I'm working on a bigger C# MVC 4 project which is divided in several assemblies (Core, Domain, Backend MVC, Frontend MVC etc.). I use the plugin architecture provided by MEF to load and resolve mo...
Gregg asked 14/1, 2013 at 10:46

1

Solved

Overview I'm trying to port a number of projects based on the .NET Framework to .NET Core. This involves porting a number of class libraries as well as top-level console/web applications that cons...
Pavyer asked 7/10, 2016 at 11:50

7

Solved

The Managed Extensibility Framework (MEF) and Managed AddIn Framework (MAF, aka System.AddIn) seem to accomplish very similar tasks. According to this Stack Overflow question, Is MEF a replacement ...
Dwan asked 7/5, 2009 at 14:59

1

Solved

I am building a modular .NET core application that can load extensions at runtime using MEF. I have 2 projects, one is a library that I want to be able to load at runtime, then I have my main appli...
Garbanzo asked 2/8, 2017 at 14:55

1

The extension I am writing started life from the Walkthrough: Creating a Margin Glyph example provided by Microsoft: https://msdn.microsoft.com/en-us/library/ee361745.aspx Everything works fine, e...
Oftentimes asked 21/4, 2016 at 6:2

1

Solved

Problem I have a MVVM application that uses Caliburn.Micro as the MVVM framework and MEF for "dependency injection" (in quotes as I am aware it is not strictly an DI container). The composition pr...
Clubbable asked 23/4, 2017 at 17:56

4

Solved

I would like to create some existing code-modules (IMyDesiredType) to load with MEF. The modules mostly have some constructor arguments which I want to provide with MEF (ImportingConstructor). So f...
Senegal asked 1/3, 2017 at 10:46

6

Solved

See below for an explanation of what is going on I have a really weird issue where the exception caught is null. The code uses MEF and tries hard to report composition errors. Using the debugger ...
Mauri asked 13/4, 2011 at 14:27

4

Solved

I am working on a Web API project that uses an in-house mocking framework that allows to intercept and modify the responses from the controllers. It uses MEF to loading an assembly that contains co...
Narrow asked 9/11, 2016 at 11:4

© 2022 - 2024 — McMap. All rights reserved.