Files
spark/src/DataStreamSuite/Directory.Build.targets
T
John Colvin a1c6e0ccab build: Add t4 templates to generate c# row types
Produces classes/structs that implement IBlueRow with strongly typed
properties for each column.
2026-01-10 12:59:14 -05:00

19 lines
701 B
XML

<Project>
<Import Project="..\Directory.Build.targets" />
<Target
Name="GenerateRowTypes"
BeforeTargets="BeforeCompile"
Condition="'@(RowType)'!=''"
Inputs="%(RowType.SchemaJson)"
Outputs="$(IntermediateOutputPath)/RowTypes/%(RowType.TypeName).cs">
<MakeDir Directories="$(IntermediateOutputPath)/RowTypes" />
<Exec Command="dotnet t4 %(RowType.Identity) -p SchemaJson=%(RowType.SchemaJson) -p TypeName=%(RowType.TypeName) -p TableName=%(RowType.TableName) -o $(IntermediateOutputPath)/RowTypes/%(RowType.TypeName).cs" />
<ItemGroup>
<Compile Include="$(IntermediateOutputPath)/RowTypes/%(RowType.TypeName).cs" />
</ItemGroup>
</Target>
</Project>