Skip to content

Commit

Permalink
Make Source Generator package show up as analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinungf committed Nov 22, 2020
1 parent 566e975 commit c6e721d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
17 changes: 10 additions & 7 deletions SpreadCheetah.SourceGenerator/SpreadCheetah.SourceGenerator.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>SpreadCheetah.SourceGenerator</PackageId>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Authors>sveinungf</Authors>
<Description>Extensions to SpreadCheetah based on Source Generators.</Description>
<Description>Extensions to SpreadCheetah based on C# Source Generators.</Description>
<PackageProjectUrl>https://github.com/sveinungf/spreadcheetah</PackageProjectUrl>
<RepositoryUrl>https://github.com/sveinungf/spreadcheetah</RepositoryUrl>
<PackageTags>spreadsheet;excel;xlsx;openxml;sourcegenerator</PackageTags>
<Version>1.2.0</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.8.0" PrivateAssets="all" />
</ItemGroup>

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

</Project>
1 change: 1 addition & 0 deletions SpreadCheetah/SpreadCheetah.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<RepositoryUrl>https://github.com/sveinungf/spreadcheetah</RepositoryUrl>
<PackageTags>spreadsheet;excel;xlsx;openxml</PackageTags>
<Version>1.2.0</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
Expand Down

0 comments on commit c6e721d

Please sign in to comment.