Skip to content

Commit a50334f

Browse files
lukebakkenbording
andauthored
Enable deterministic builds (#809)
* Enable deterministic builds Fixes #805 * Add Directory.Build.targets with AssemblyInfo embedding workaround Co-authored-by: Brandon Ording <[email protected]>
1 parent f8409df commit a50334f

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

RabbitMQDotNetClient.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{34486CC0-D61E-46BA-9E5E-6E8EFA7C34B5}"
66
ProjectSection(SolutionItems) = preProject
77
.editorconfig = .editorconfig
8+
projects\Directory.Build.targets = projects\Directory.Build.targets
89
EndProjectSection
910
EndProject
1011
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RabbitMQ.Client", "projects\RabbitMQ.Client\RabbitMQ.Client.csproj", "{8C554257-5ECC-45DB-873D-560BFBB74EC8}"

projects/Directory.Build.targets

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

projects/RabbitMQ.Client/RabbitMQ.Client.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
<PackageOutputPath>..\..\packages</PackageOutputPath>
2929
</PropertyGroup>
3030

31+
<PropertyGroup Condition="'$(CONCOURSE_CI_BUILD)' == 'true'">
32+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
33+
<Deterministic>true</Deterministic>
34+
</PropertyGroup>
35+
3136
<Target Name="SetVersionFromConcourseData" AfterTargets="MinVer" Condition="'$(CONCOURSE_PULL_REQUEST_NUMBER)' != ''">
3237
<PropertyGroup>
3338
<PackageVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch)-$(MinVerPreRelease)-pr.$(CONCOURSE_PULL_REQUEST_NUMBER)</PackageVersion>

0 commit comments

Comments
 (0)