Skip to content

Commit dfaa48c

Browse files
AlexGhiondeaAlex Ghiondea
andauthored
Make reproducible build (#66)
* Make the projects reproducible * Bump package version in preparation for release Co-authored-by: Alex Ghiondea <alexghi@microsoft.com>
1 parent a6fb092 commit dfaa48c

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

analyzer/CommandLine.Analyzer/CommandLine.Analyzer.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11+
<PackageReference Include="DotNet.ReproducibleBuilds" Version="0.1.64">
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
<PrivateAssets>all</PrivateAssets>
14+
</PackageReference>
15+
<PackageReference Include="DotNet.ReproducibleBuilds.Isolated" Version="0.1.64">
16+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
17+
<PrivateAssets>all</PrivateAssets>
18+
</PackageReference>
1119
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.8.2">
1220
<PrivateAssets>all</PrivateAssets>
1321
</PackageReference>

src/CommandLine.csproj

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<PropertyGroup>
10-
<AssemblyVersion>2.2.2</AssemblyVersion>
11-
<FileVersion>2.2.2</FileVersion>
10+
<AssemblyVersion>2.2.3</AssemblyVersion>
11+
<FileVersion>2.2.3</FileVersion>
1212
<VersionPrefix>2.2.0</VersionPrefix>
1313
</PropertyGroup>
1414

@@ -18,9 +18,8 @@
1818
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
1919
<Authors>Alex Ghiondea</Authors>
2020
<Description>Parse command line arguments into user defined objects</Description>
21-
<releaseNotes>Fix an issue where TryParse returns true when parsing help which leads to a null reference later.
22-
Also ensure that Parse throws a ParseException when the help was requested to ensure we don't end up with null options after parsing.</releaseNotes>
23-
<Copyright>Alex Ghiondea (c) 2020</Copyright>
21+
<releaseNotes>Make the package have a reproducible build</releaseNotes>
22+
<Copyright>Alex Ghiondea (c) 2021</Copyright>
2423
<PackageLicenseUrl>https://raw.githubusercontent.com/AlexGhiondea/CommandLine/master/LICENSE</PackageLicenseUrl>
2524
<PackageProjectUrl>https://github.com/AlexGhiondea/CommandLine</PackageProjectUrl>
2625
<RepositoryType>Git</RepositoryType>
@@ -30,6 +29,14 @@
3029
</PropertyGroup>
3130

3231
<ItemGroup>
32+
<PackageReference Include="DotNet.ReproducibleBuilds" Version="0.1.64">
33+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
34+
<PrivateAssets>all</PrivateAssets>
35+
</PackageReference>
36+
<PackageReference Include="DotNet.ReproducibleBuilds.Isolated" Version="0.1.64">
37+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
38+
<PrivateAssets>all</PrivateAssets>
39+
</PackageReference>
3340
<PackageReference Include="OutputColorizer" Version="2.0.0" />
3441
</ItemGroup>
3542

0 commit comments

Comments
 (0)