Support Code Lens Exception display for all .NET project types
The option to show per method Exception information through CodeLens integration in Visual Studio is currently explicitly restricted so that it only works for ASP.NET project types with direct AI configuration.
It should be made possible to manually enable this VS integration feature for any Visual Studio project type that supports method level CodeLens display.
Thanks David. I'd missed the previous comment but I can confirm that workaround provided works for me - if I apply it to the primary startup .exe then all projects in the solution get the CodeLens Exception support.
Hi Steve, here's a work-around that will let you see CodeLens in your C# library.
In the .csproj of the project in a property group, add:
Once you reload the project, you should see an Application Insights menu in the project right-click menu that has Search, Trends, Choose Telemetry Source, and more. If you see this menu, CodeLens should also start working.
Hi, we're using App Insights through a wrapper library (Generic CSharp Library project) that is consumed (directly or indirectly) by several different launchable project types; Generic CSharp Executables, WPF Application Executables & WCF Services.