This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDirectory.Build.props
33 lines (29 loc) · 1.73 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<SolutionDir Condition="'$(SolutionDir)'==''">$(MSBuildThisFileDirectory)</SolutionDir>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>CS8600;CS8602;CS8603;$(WarningsAsErrors)</WarningsAsErrors>
</PropertyGroup>
<!--> WORKAROUND: https://github.com/dotnet/sdk/issues/1834#issuecomment-399745156 </!-->
<PropertyGroup>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
</PropertyGroup>
<!-- Input properties for Improbable.Schema.Compiler -->
<PropertyGroup>
<SchemaGeneratedOutputDir>$(MSBuildProjectDirectory)\gen</SchemaGeneratedOutputDir>
<GeneratedDescriptorTarget>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectName).schema.descriptor</GeneratedDescriptorTarget>
<GeneratedBundleTarget>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectName).schema.json</GeneratedBundleTarget>
<GeneratedBuildMarker>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectName).schema.marker.json</GeneratedBuildMarker>
<_CodeGenProject>$(SolutionDir)CSharpCodeGenerator\CSharpCodeGenerator\CSharpCodeGenerator.csproj</_CodeGenProject>
<CodeGenProject>$([MSBuild]::NormalizePath($(_CodeGenProject)))</CodeGenProject>
<CodeGenCommand>dotnet run -p "$(CodeGenProject)" -- --input-bundle "$(GeneratedBundleTarget)" --output-marker="$(GeneratedBuildMarker)" --output-dir "$(SchemaGeneratedOutputDir)"</CodeGenCommand>
</PropertyGroup>
<!-- CONFIGURATION POINT -->
<!-- This is ;-separated list of schema input directories from your project. -->
<ItemGroup>
<SchemaInputDir Include="$(SolutionDir)\schema;$(AdditionalSchemaInputDir)" />
</ItemGroup>
</Project>