Reputation: 7419
I'm trying to do a proof of concept app for my work using ASP.NET WebForms and the Managed Extensibility Framework. I've got things up and running(ish), but I can't seem to figure out how to attach the instance of Visual Studio that has the MEF code in it to the instance of Visual Studio that is running the Web App.
How can I attach my MEF code to the running process so that it hits my breakpoints?
Upvotes: 4
Views: 718
Reputation: 16744
Try opening a code file for your MEF plugin in the instance of Visual Studio that is running the web app. Put a breakpoint in that file and run the web app. The breakpoint should be hit.
Create a solution which includes both the Web App and your MEF code. Run and debug as normal.
Upvotes: 2