Fixed issue where code generator runs multiple times

This commit is contained in:
Thorsten Sommer 2024-05-21 09:29:43 +02:00
parent 106ec09ac5
commit 549a34eed1
No known key found for this signature in database
GPG Key ID: B0B7E2FC074BF1F5

View File

@ -25,10 +25,16 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition="'$(UseLocalProjects)' == 'true'"> <ItemGroup Condition="'$(UseLocalProjects)' == 'true'">
<ProjectReference Include="..\CSV Metrics Logger Generator\CSV Metrics Logger Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> <ProjectReference Include="..\CSV Metrics Logger Generator\CSV Metrics Logger Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>build; analyzers; buildtransitive</IncludeAssets>
</ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup Condition="'$(UseLocalProjects)' == 'false'"> <ItemGroup Condition="'$(UseLocalProjects)' == 'false'">
<PackageReference Include="CSVMetricsLoggerGenerator" Version="1.0.0" /> <PackageReference Include="CSVMetricsLoggerGenerator" Version="1.0.0" OutputItemType="Analyzer" ReferenceOutputAssembly="false">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup> </ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">