Skip to content

Commit 20becbb

Browse files
committed
Enable deterministic builds.
Use instructions from https://github.com/clairernovotny/DeterministicBuilds.
1 parent 8101db2 commit 20becbb

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
<NoWarn>$(NoWarn);1591;NU5105</NoWarn>
2222
</PropertyGroup>
2323

24+
<PropertyGroup Condition=" '$(GITHUB_ACTIONS)' == 'true' OR '$(APPVEYOR)' == 'True' OR '$(TF_BUILD)' == 'True' ">
25+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
26+
<Deterministic>true</Deterministic>
27+
</PropertyGroup>
28+
2429
<ItemGroup>
2530
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
2631
</ItemGroup>

src/Directory.Build.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
7+
</ItemGroup>
8+
</Project>

0 commit comments

Comments
 (0)