Skip to content

Commit 1048cd9

Browse files
Enable repeatable package restores (#3359)
Locking restricted to projects that create NuGet packages ICSharpCode.Decompiler ICSharpCode.ILSpyX ILSpyCmd ICSharpCode.BamlDecompiler
1 parent 9da70df commit 1048cd9

File tree

9 files changed

+692
-1
lines changed

9 files changed

+692
-1
lines changed

ICSharpCode.BamlDecompiler/ICSharpCode.BamlDecompiler.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
<None Include="PackageReadme.md" Pack="true" PackagePath="\" />
4242
</ItemGroup>
4343

44+
<!-- https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/ -->
45+
<PropertyGroup>
46+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
47+
<RestoreLockedMode Condition="'$(GITHUB_ACTIONS)' == 'true'">true</RestoreLockedMode>
48+
</PropertyGroup>
49+
4450
<ItemGroup>
4551
<Compile Remove="Properties\AssemblyInfo.template.cs" />
4652
</ItemGroup>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"version": 2,
3+
"dependencies": {
4+
"net8.0": {
5+
"TomsToolbox.Composition.Analyzer": {
6+
"type": "Direct",
7+
"requested": "[2.21.0, )",
8+
"resolved": "2.21.0",
9+
"contentHash": "vJx9hxAzjni34slGz78ewqYP9Ylk8dJszfEUK1TF5cflVKMBO3ORSFd0FtICTwJtE8munvZrMrcLWwXt5bIcEA=="
10+
},
11+
"icsharpcode.decompiler": {
12+
"type": "Project",
13+
"dependencies": {
14+
"System.Collections.Immutable": "[6.0.0, )",
15+
"System.Reflection.Metadata": "[6.0.0, )"
16+
}
17+
},
18+
"System.Collections.Immutable": {
19+
"type": "CentralTransitive",
20+
"requested": "[9.0.0, )",
21+
"resolved": "6.0.0",
22+
"contentHash": "l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==",
23+
"dependencies": {
24+
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
25+
}
26+
},
27+
"System.Reflection.Metadata": {
28+
"type": "CentralTransitive",
29+
"requested": "[9.0.0, )",
30+
"resolved": "6.0.0",
31+
"contentHash": "sffDOcex1C3HO5kDolOYcWXTwRpZY/LvJujM6SMjn63fWMJWchYAAmkoAJXlbpZ5yf4d+KMgxd+LeETa4gD9sQ==",
32+
"dependencies": {
33+
"System.Collections.Immutable": "6.0.0"
34+
}
35+
},
36+
"System.Runtime.CompilerServices.Unsafe": {
37+
"type": "CentralTransitive",
38+
"requested": "[6.1.0, )",
39+
"resolved": "6.0.0",
40+
"contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg=="
41+
}
42+
}
43+
}
44+
}

ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
<None Include="PackageReadme.md" Pack="true" PackagePath="\" />
4848
<None Include="DecompilerNuGetPackageIcon.png" Pack="true" PackagePath="\" />
4949
</ItemGroup>
50+
51+
<!-- https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/ -->
52+
<PropertyGroup>
53+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
54+
<RestoreLockedMode Condition="'$(GITHUB_ACTIONS)' == 'true'">true</RestoreLockedMode>
55+
</PropertyGroup>
5056

5157
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
5258
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"version": 1,
3+
"dependencies": {
4+
".NETStandard,Version=v2.0": {
5+
"Microsoft.SourceLink.GitHub": {
6+
"type": "Direct",
7+
"requested": "[8.0.0, )",
8+
"resolved": "8.0.0",
9+
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
10+
"dependencies": {
11+
"Microsoft.Build.Tasks.Git": "8.0.0",
12+
"Microsoft.SourceLink.Common": "8.0.0"
13+
}
14+
},
15+
"NETStandard.Library": {
16+
"type": "Direct",
17+
"requested": "[2.0.3, )",
18+
"resolved": "2.0.3",
19+
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
20+
"dependencies": {
21+
"Microsoft.NETCore.Platforms": "1.1.0"
22+
}
23+
},
24+
"System.Collections.Immutable": {
25+
"type": "Direct",
26+
"requested": "[6.0.0, )",
27+
"resolved": "6.0.0",
28+
"contentHash": "l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==",
29+
"dependencies": {
30+
"System.Memory": "4.5.4",
31+
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
32+
}
33+
},
34+
"System.Reflection.Metadata": {
35+
"type": "Direct",
36+
"requested": "[6.0.0, )",
37+
"resolved": "6.0.0",
38+
"contentHash": "sffDOcex1C3HO5kDolOYcWXTwRpZY/LvJujM6SMjn63fWMJWchYAAmkoAJXlbpZ5yf4d+KMgxd+LeETa4gD9sQ==",
39+
"dependencies": {
40+
"System.Collections.Immutable": "6.0.0"
41+
}
42+
},
43+
"TunnelVisionLabs.ReferenceAssemblyAnnotator": {
44+
"type": "Direct",
45+
"requested": "[1.0.0-alpha.160, )",
46+
"resolved": "1.0.0-alpha.160",
47+
"contentHash": "ktxB8PGoPpIaYKjLk/+P94Fi2Qw2E1Dw7atBQRrKnHA57sk8WwmkI4RJmg6s5ph4k1RIaaAZMus05ah/AikEkA=="
48+
},
49+
"Microsoft.Build.Tasks.Git": {
50+
"type": "Transitive",
51+
"resolved": "8.0.0",
52+
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
53+
},
54+
"Microsoft.NETCore.Platforms": {
55+
"type": "Transitive",
56+
"resolved": "1.1.0",
57+
"contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A=="
58+
},
59+
"Microsoft.SourceLink.Common": {
60+
"type": "Transitive",
61+
"resolved": "8.0.0",
62+
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
63+
},
64+
"System.Buffers": {
65+
"type": "Transitive",
66+
"resolved": "4.5.1",
67+
"contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg=="
68+
},
69+
"System.Memory": {
70+
"type": "Transitive",
71+
"resolved": "4.5.4",
72+
"contentHash": "1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==",
73+
"dependencies": {
74+
"System.Buffers": "4.5.1",
75+
"System.Numerics.Vectors": "4.4.0",
76+
"System.Runtime.CompilerServices.Unsafe": "4.5.3"
77+
}
78+
},
79+
"System.Numerics.Vectors": {
80+
"type": "Transitive",
81+
"resolved": "4.4.0",
82+
"contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ=="
83+
},
84+
"System.Runtime.CompilerServices.Unsafe": {
85+
"type": "Transitive",
86+
"resolved": "6.0.0",
87+
"contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg=="
88+
}
89+
}
90+
}
91+
}

ICSharpCode.ILSpyCmd/ICSharpCode.ILSpyCmd.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
<ItemGroup>
3232
<None Include="README.md" Pack="true" PackagePath="\" />
3333
</ItemGroup>
34+
35+
<!-- https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/ -->
36+
<PropertyGroup>
37+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
38+
<RestoreLockedMode Condition="'$(GITHUB_ACTIONS)' == 'true'">true</RestoreLockedMode>
39+
</PropertyGroup>
3440

3541
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
3642
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>

0 commit comments

Comments
 (0)