Skip to content

Commit a792f2c

Browse files
committed
Simplify code that regenerates test bindings
1 parent 4405525 commit a792f2c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

tests/Test.Generator.props

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<GeneratorOutput>$(BaseIntermediateOutputPath)$(TestName).Bindings.timestamp</GeneratorOutput>
43
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
54
<PostBuildEvent>$(DotNetCmd) "$(OutputPath)$(TestGeneratorName).$(GeneratorFileExtension)"</PostBuildEvent>
65
</PropertyGroup>
@@ -17,14 +16,7 @@
1716

1817
<ItemGroup>
1918
<GeneratorInputs Include="*.h" />
20-
<GeneratorInputs Include="$(TestName).Gen.cs" />
21-
<UpToDateCheckInput Include="@(GeneratorInputs)" Set="Bindings" />
22-
<UpToDateCheckBuilt Include="$(GeneratorOutput)" Set="Bindings" />
19+
<CustomAdditionalCompileInputs Include="@(GeneratorInputs)" />
20+
<UpToDateCheckInput Include="@(GeneratorInputs)" />
2321
</ItemGroup>
24-
25-
<Target Name="UpdateBindingsTimestamp" AfterTargets="PostBuildEvent">
26-
<Touch Files="$(GeneratorOutput)" AlwaysCreate="true">
27-
<Output TaskParameter="TouchedFiles" ItemName="FileWrites" />
28-
</Touch>
29-
</Target>
3022
</Project>

0 commit comments

Comments
 (0)