products/src.targets
2026-03-16 22:08:02 +00:00

12 lines
557 B
XML

<Project>
<Target Name="CleanPreviouslyGeneratedSources" BeforeTargets="GenerateSources"
Condition="'$(EmitCompilerGeneratedFiles)' == 'true' AND '$(CompilerGeneratedFilesOutputPath)' != ''">
<ItemGroup>
<PreviouslyGeneratedSources Include="$(CompilerGeneratedFilesOutputPath)\**\*.*" />
</ItemGroup>
<Delete Files="@(PreviouslyGeneratedSources)" />
</Target>
<ItemGroup Condition="'$(CompilerGeneratedFilesOutputPath)' != ''">
<Compile Remove="$(CompilerGeneratedFilesOutputPath)\**\*.cs" />
</ItemGroup>
</Project>