-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathCatalog.Generated.targets
More file actions
17 lines (16 loc) · 992 Bytes
/
Catalog.Generated.targets
File metadata and controls
17 lines (16 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<Project>
<PropertyGroup>
<CatalogDefinitionsGeneratedFile>$(BaseIntermediateOutputPath)Generated/CatalogGeneratedDefinitions.g.cs</CatalogDefinitionsGeneratedFile>
<CatalogPythonExecutable Condition="'$(CatalogPythonExecutable)' == '' and '$(OS)' == 'Windows_NT'">py -3</CatalogPythonExecutable>
<CatalogPythonExecutable Condition="'$(CatalogPythonExecutable)' == '' and '$(OS)' != 'Windows_NT'">python3</CatalogPythonExecutable>
</PropertyGroup>
<Target Name="GenerateCatalogDefinitionsSource" BeforeTargets="CoreCompile">
<MakeDir Directories="$([System.IO.Path]::GetDirectoryName('$(CatalogDefinitionsGeneratedFile)'))" />
<Exec
WorkingDirectory="$(MSBuildProjectDirectory)"
Command='$(CatalogPythonExecutable) ../../scripts/generate_catalog_definitions.py --csharp-output "$(CatalogDefinitionsGeneratedFile)"' />
<ItemGroup>
<Compile Include="$(CatalogDefinitionsGeneratedFile)" Visible="false" />
</ItemGroup>
</Target>
</Project>