If you’re working on a MEF (Managed Extensibility Framework) application, you’re probably familiar with its ups and down. On the one hand, MEF is a powerful plugin system, that’s a pleasure to work with once you know it well. On the other hand, we all encountered strange failures that originated with MEF. Such failures are a nightmare …
I recently had to create a Roslyn Analyzer that envelopes code in a try/catch statement. This reasoning was to prevent loading errors in any exported MEF component. Here’s the analyzer in action:
I recently encountered an interesting challenge: The need to identify the word currently under the mouse cursor in the Visual Studio editor. This turned out harder than I thought. But after some work and a few tricks needed to make it work well, the result is this: Let’s see how this can be done.