forked from dotnet/orleans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
27 lines (26 loc) · 1.76 KB
/
Directory.Build.targets
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
<Project Condition=" '$(OrleansBuildTimeCodeGen)' == 'true' ">
<!-- Begin Orleans: Without these lines the project won't build properly -->
<!-- Set path to code generator -->
<ItemGroup>
<ProjectReference Include="$(SourceRoot)/src/BootstrapBuild/Orleans.CodeGeneration.Build/Orleans.CodeGeneration.Build.Bootstrap.csproj" Condition=" '$(OrleansBuildTimeCodeGen)' == 'true' and '$(OrleansCodeGenPrecompile)' != 'true'">
<Project>{F7D70028-7E3B-48E3-92B9-DB889AE5ABD1}</Project>
<Name>Orleans.CodeGeneration.Build.Bootstrap</Name>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<!-- Workaround. See: https://github.com/dotnet/sdk/issues/939#issuecomment-284641613 -->
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
<UndefineProperties>TargetFramework</UndefineProperties>
<!-- /Workaround -->
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition=" '$(OrleansBuildTimeCodeGen)' == 'true' ">
<OrleansCodeGeneratorAssembly>$(SourceRoot)Bootstrap/$(Configuration)/Orleans.CodeGeneration.Build.exe</OrleansCodeGeneratorAssembly>
<!-- For non-windows OS we force .Net Core -->
<OrleansCodeGeneratorAssembly Condition=" '$(OS)' != 'Windows_NT' ">$(SourceRoot)Bootstrap/$(Configuration)/Orleans.CodeGeneration.Build.dll</OrleansCodeGeneratorAssembly>
</PropertyGroup>
<Import Project="$(SourceRoot)src/Orleans.CodeGeneration.Build/build/Microsoft.Orleans.OrleansCodeGenerator.Build.targets" Condition=" '$(OrleansBuildTimeCodeGen)' == 'true' " />
<!--End Orleans -->
<!-- Set InformationVersion here, since $(Version) is already set at this point. -->
<PropertyGroup>
<InformationalVersion>$(Version). Commit Hash: $(GitHeadSha)</InformationalVersion>
</PropertyGroup>
</Project>