RoslynClrHeapAllocationAnalyzer
RoslynClrHeapAllocationAnalyzer copied to clipboard
does not work, there are no analyze information
VS 2017 15.8.1
I have installed the extension but within my projects there is no analyze output to see.
I copied the example code for testing the extension:
static void ParamsMethod(params string[] a) { ParamsMethod("Hello world!"); ParamsMethod(new[] { "blubb" }); } static void SoManyObjects() { var words = new[] { "foo", "bar", "baz", "beer" }; var actions = new List<Action>(); foreach (string word in words) { actions.Add(() => Trace.WriteLine(word)); } }
But within the editor or during the build the expected "warning" are not shown.
All I get are the default warnings of Resharper.
Additonal information: In a simple "Hello world"-console app the warnings are showing up. Within my legacy solution with several c# projects no warnings show up. Does it only work with specific .net framework and c# language versions?
It seems like you are using version 1.0. Before investigating further, have you tried 2.0?
I have created a WPF app using .NET Framework 4.7.2 with VS2019 Community V.16.8.5 and it is not displaying anything: