Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Release update to VS Gallery and Nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsabby committed Jul 10, 2018
1 parent 9afb157 commit ff487d1
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 64 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,9 @@ FakesAssemblies/
# LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
ModelManifest.xml
*.ide-wal
*.lock
*.ide
*.ide-shm
*.dtbcache
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>14.0</OldToolsVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
Expand All @@ -23,20 +20,20 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<PlatformTarget>AnyCPU</PlatformTarget>
<SchemaVersion>2.0</SchemaVersion>
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectGuid>{B1412F49-1ABA-4698-B928-451FDA8DAF85}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ClrHeapAllocation</RootNamespace>
<AssemblyName>ClrHeapAllocation</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<GeneratePkgDefFile>false</GeneratePkgDefFile>
<IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer>
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
Expand Down Expand Up @@ -79,27 +76,23 @@
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ClrHeapAllocationsAnalyzer\ClrHeapAllocationAnalyzer.csproj">
<Project>{EAF46154-6613-4CD6-BE70-9015FF94F9CF}</Project>
<Name>ClrHeapAllocationAnalyzer</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ClrHeapAllocationsAnalyzer\ClrHeapAllocationAnalyzer.csproj">
<Project>{EAF46154-6613-4CD6-BE70-9015FF94F9CF}</Project>
<Name>ClrHeapAllocationAnalyzer</Name>
<IncludeOutputGroupsInVSIX>BuiltProjectOutputGroup%3bBuiltProjectOutputGroupDependencies%3bGetCopyToOutputDirectoryItems%3bSatelliteDllsProjectOutputGroup%3b</IncludeOutputGroupsInVSIX>
<IncludeOutputGroupsInVSIXLocalOnly>DebugSymbolsProjectOutputGroup%3b</IncludeOutputGroupsInVSIXLocalOnly>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
10 changes: 5 additions & 5 deletions ClrHeapAllocationsAnalyzer.Vsix/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<Identity Id="ClrHeapAllocationAnalyzer..f21077b6-a9d3-4fb6-81a3-b46dfd105fd4" Version="1.0" Language="en-US" Publisher="MJSABBY"/>
<DisplayName>Clr Heap Allocation Analyzer</DisplayName>
<Description xml:space="preserve">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.</Description>
<MoreInfo>https://github.com/mjsabby/RoslynClrHeapAllocationAnalyzer</MoreInfo>
<MoreInfo>https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer</MoreInfo>
<License>LICENSE.txt</License>
<Tags>roslyn clr allocations boxing closure display performance</Tags>
</Metadata>
<Installation>
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Community" />
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Enterprise" />
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,)" />
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[15.0,)" />
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[15.0,)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.6,)" />
Expand All @@ -21,6 +21,6 @@
<Asset Type="Microsoft.VisualStudio.Analyzer" d:Source="Project" d:ProjectName="ClrHeapAllocationAnalyzer" Path="|ClrHeapAllocationAnalyzer|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.Roslyn.LanguageServices" Version="[15.0.26208.0,16.0)" DisplayName="C# and Visual Basic" />
<Prerequisite Id="Microsoft.VisualStudio.Component.Roslyn.LanguageServices" Version="[15.0,16.0)" DisplayName="Roslyn Language Services" />
</Prerequisites>
</PackageManifest>
30 changes: 30 additions & 0 deletions ClrHeapAllocationsAnalyzer/ClrHeapAllocationAnalyzer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,41 @@

<PropertyGroup>
<TargetFramework>netstandard1.3</TargetFramework>
<IncludeBuildOutput>false</IncludeBuildOutput>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<PropertyGroup>
<PackageId>ClrHeapAllocationAnalyzer</PackageId>
<PackageVersion>1.0.0.9</PackageVersion>
<Authors>mjsabby</Authors>
<PackageLicenseUrl>https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer</PackageProjectUrl>
<RepositoryUrl>https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer</RepositoryUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>
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.
</Description>
<PackageReleaseNotes>Summary of changes made in this release of the package.</PackageReleaseNotes>
<Copyright>Copyright</Copyright>
<PackageTags>clr allocations boxing closure displayclass delegate enumerator newobj roslyn analyzer diagnostic</PackageTags>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="2.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.0.0" />
<PackageReference Update="NETStandard.Library" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<None Update="tools\*.ps1" CopyToOutputDirectory="Always" Pack="true" PackagePath="" />
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

</Project>
32 changes: 0 additions & 32 deletions ClrHeapAllocationsAnalyzer/Diagnostic.nuspec

This file was deleted.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff487d1

Please sign in to comment.