Skip to content

Commit

Permalink
Add sourcegen helper target to copy dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Feb 1, 2024
1 parent fffccb3 commit 19d7576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/Settings.SourceGenerator.targets
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<SymbolPackageFormat></SymbolPackageFormat>
</PropertyGroup>

<Target Name="AddGenerationTimeReferences" AfterTargets="ResolvePackageDependenciesForBuild">
<ItemGroup>
<None Include="@(ResolvedCompileFileDefinitions)" Pack="true" PackagePath="analyzers/dotnet/cs" />
</ItemGroup>
</Target>

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

0 comments on commit 19d7576

Please sign in to comment.