diff --git a/.gitignore b/.gitignore index 7964536..134990b 100644 --- a/.gitignore +++ b/.gitignore @@ -186,4 +186,9 @@ FakesAssemblies/ # LightSwitch generated files GeneratedArtifacts/ _Pvt_Extensions/ -ModelManifest.xml \ No newline at end of file +ModelManifest.xml +*.ide-wal +*.lock +*.ide +*.ide-shm +*.dtbcache diff --git a/ClrHeapAllocationsAnalyzer.Test/TypeConversionAllocationAnalyzerTests.cs b/ClrHeapAllocationsAnalyzer.Test/TypeConversionAllocationAnalyzerTests.cs index a9e5910..14b3237 100644 --- a/ClrHeapAllocationsAnalyzer.Test/TypeConversionAllocationAnalyzerTests.cs +++ b/ClrHeapAllocationsAnalyzer.Test/TypeConversionAllocationAnalyzerTests.cs @@ -436,7 +436,7 @@ public static implicit operator string(AStruct astruct) AssertEx.ContainsDiagnostic(info0.Allocations, id: TypeConversionAllocationAnalyzer.ValueTypeToReferenceTypeConversionRule.Id, line: 6, character: 50); var info1 = ProcessCode(analyzer, programWithImplicitCastOperator, ImmutableArray.Create(SyntaxKind.Argument)); - Assert.AreEqual(0, info1.Allocations.Count, info1.Allocations[0].Id); + Assert.AreEqual(0, info1.Allocations.Count); } diff --git a/ClrHeapAllocationsAnalyzer.Vsix/ClrHeapAllocationAnalyzer.Vsix.csproj b/ClrHeapAllocationsAnalyzer.Vsix/ClrHeapAllocationAnalyzer.Vsix.csproj index 3466ff7..8f54ab2 100644 --- a/ClrHeapAllocationsAnalyzer.Vsix/ClrHeapAllocationAnalyzer.Vsix.csproj +++ b/ClrHeapAllocationsAnalyzer.Vsix/ClrHeapAllocationAnalyzer.Vsix.csproj @@ -1,12 +1,9 @@  + 15.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - 14.0 publish\ true @@ -23,12 +20,12 @@ false false true - Debug AnyCPU + AnyCPU 2.0 {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} {B1412F49-1ABA-4698-B928-451FDA8DAF85} @@ -36,7 +33,7 @@ Properties ClrHeapAllocation ClrHeapAllocation - v4.6.2 + v4.6.1 false false false @@ -79,27 +76,23 @@ + + {EAF46154-6613-4CD6-BE70-9015FF94F9CF} + ClrHeapAllocationAnalyzer + + + + + False + Microsoft .NET Framework 4.6.1 %28x86 and x64%29 + true + False .NET Framework 3.5 SP1 false - - - {EAF46154-6613-4CD6-BE70-9015FF94F9CF} - ClrHeapAllocationAnalyzer - BuiltProjectOutputGroup%3bBuiltProjectOutputGroupDependencies%3bGetCopyToOutputDirectoryItems%3bSatelliteDllsProjectOutputGroup%3b - DebugSymbolsProjectOutputGroup%3b - - - \ No newline at end of file diff --git a/ClrHeapAllocationsAnalyzer.Vsix/source.extension.vsixmanifest b/ClrHeapAllocationsAnalyzer.Vsix/source.extension.vsixmanifest index 6263404..dd2ba7c 100644 --- a/ClrHeapAllocationsAnalyzer.Vsix/source.extension.vsixmanifest +++ b/ClrHeapAllocationsAnalyzer.Vsix/source.extension.vsixmanifest @@ -4,14 +4,14 @@ Clr Heap Allocation Analyzer Clr Heap Allocation Analyzer is a Roslyn based Diagnostic Analyzer that is able to detect most allocations in code in the local method and bring them to your attention in Visual Studio. It can detect subtle allocations caused by value type boxing, closure captures, delegate instantiations, etc. - https://github.com/mjsabby/RoslynClrHeapAllocationAnalyzer + https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer LICENSE.txt roslyn clr allocations boxing closure display performance - - - + + + @@ -21,6 +21,6 @@ - + diff --git a/ClrHeapAllocationsAnalyzer/ClrHeapAllocationAnalyzer.csproj b/ClrHeapAllocationsAnalyzer/ClrHeapAllocationAnalyzer.csproj index 2020b31..f382754 100644 --- a/ClrHeapAllocationsAnalyzer/ClrHeapAllocationAnalyzer.csproj +++ b/ClrHeapAllocationsAnalyzer/ClrHeapAllocationAnalyzer.csproj @@ -2,11 +2,41 @@ netstandard1.3 + false + True + + + + ClrHeapAllocationAnalyzer + 1.0.0.9 + mjsabby + https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer/blob/master/LICENSE + https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer + https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer + false + + Roslyn based C# heap allocation diagnostic analyzer that can detect explicit and many implicit allocations like boxing, display classes a.k.a closures, implicit delegate creations, etc + + The code-assist version that integrates with the Visual Studio 2017 IDE is here, https://marketplace.visualstudio.com/items?itemName=MukulSabharwal.ClrHeapAllocationAnalyzer + + NOTE: This is the build analyzer. + NOTE: You require ' ' ' ' Visual Studio 2017 ' ' ' ' for this to work. + + Summary of changes made in this release of the package. + Copyright + clr allocations boxing closure displayclass delegate enumerator newobj roslyn analyzer diagnostic + true + + + + + + \ No newline at end of file diff --git a/ClrHeapAllocationsAnalyzer/Diagnostic.nuspec b/ClrHeapAllocationsAnalyzer/Diagnostic.nuspec deleted file mode 100644 index 7ec7e59..0000000 --- a/ClrHeapAllocationsAnalyzer/Diagnostic.nuspec +++ /dev/null @@ -1,32 +0,0 @@ - - - - ClrHeapAllocationAnalyzer - 1.0.0.8 - Clr C# Heap Allocation Analyzer - mjsabby - mjsabby - https://github.com/mjsabby/RoslynClrHeapAllocationAnalyzer/blob/master/LICENSE - https://github.com/mjsabby/RoslynClrHeapAllocationAnalyzer - false - - Roslyn based C# heap allocation diagnostic analyzer that can detect explicit and many implicit allocations like boxing, display classes a.k.a closures, implicit delegate creations, etc - - The code-assist version that integrates with the Visual Studio 2015 IDE is here, https://visualstudiogallery.msdn.microsoft.com/23ef1a4d-bc9d-49f1-a84f-ca358daaf587 - - NOTE: This is the build analyzer. - NOTE: You require ' ' ' ' Visual Studio 2015 ' ' ' ' for this to work. - - Visual Studio 2015 RTM Update. - Copyright - clr allocations boxing closure displayclass delegate enumerator newobj roslyn analyzer diagnostic - - - - true - - - - - - diff --git a/README.md b/README.md index 2a01b36..8a29cbd 100644 --- a/README.md +++ b/README.md @@ -5,16 +5,14 @@ Roslyn Clr Heap Allocation Analyzer Quick Video: https://www.youtube.com/watch?v=Tw-wgT-cXYU&hd=1 -Download: **https://github.com/mjsabby/RoslynClrHeapAllocationAnalyzer/releases** +Download: **https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer/releases** Roslyn based C# heap allocation diagnostic analyzer that can detect explicit and many implicit allocations like boxing, display classes a.k.a closures, implicit delegate creations, etc. -You can find also it on the Visual Studio Gallery, https://visualstudiogallery.msdn.microsoft.com/f9b47b93-8675-4ae0-9c52-5da8027c4bb8 +You can find also it on the Visual Studio Gallery, https://aka.ms/HeapAllocationAnalyzer If you want it use it in your build: https://www.nuget.org/packages/ClrHeapAllocationAnalyzer/ -**NOTE: Requires [Visual Studio 2015](https://www.visualstudio.com/news/vs2015-vs)** - ![example](https://cloud.githubusercontent.com/assets/1930559/4606581/2a027d08-5225-11e4-8d4e-686c204a1267.png) ## Microsoft Open Source Code of Conduct