Debugging MEF in ASP.NET

I am trying to make a proof of concept application for my work using ASP.NET WebForms and Managed Extensibility Framework. I have things and it works (ish), but I can’t figure out how to attach a Visual Studio instance that has MEF code to the Visual Studio instance that is running the web application.

How can I attach my MEF code to an executable process so that it hits my breakpoints?

+4
source share
1 answer
  • Try opening the code file for your MEF plugin in the instance of Visual Studio where the web application is running. Place the breakpoint in this file and launch the web application. The breakpoint must be deleted.

  • Create a solution that includes both a web application and your MEF code. Starting and debugging as usual.

+2
source

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


All Articles