Info
| Version: | 1.6.6344.22888 | 
| Author(s): | Michael Shpilt, Omer Raviv | 
| Last Update: | Monday, May 15, 2017 | 
| .NET Fiddle: | Create the first Fiddle | 
| Project Url: | https://github.com/oz-code/OzCode.VisualStudioExtensionAnalyzers | 
| NuGet Url: | https://www.nuget.org/packages/OzCode.VisualStudioExtensionAnalyzers | 
Install
Install-Package OzCode.VisualStudioExtensionAnalyzers
                        dotnet add package OzCode.VisualStudioExtensionAnalyzers
                        paket add OzCode.VisualStudioExtensionAnalyzers
                        
                                OzCode.VisualStudioExtensionAnalyzers Download (Unzip the "nupkg" after downloading)
                            
                        Dependencies
Tags
 
                
an exception monitoring tool such as Raygun, Exceptionless, Application Insights, etc).
The analyzer adds a try..catch block and and a call Logger.LogException() in methods and constructors where there will dire consequences if an exception is thrown within.
This includes:
1) MEF ImportingConstructors, where an unhandled exception may prevent your extension from being properly MEF-composed and initialized.
2) Callbacks which implement Visual Studio SDK interfaces (e.g.
IWpfTextViewCreationListener, or any interface defined under Microsoft.VisualStudio.X namespace), where an unhandled exception may pop up an annoying and cryptic MessageBox, which says "An exception has been encountered. This may be caused by an exception.".