Skip to content

Commit 091cc7e

Browse files
authored
Merge pull request #31 from escendit/30-enable-cache-capability-with-nuget-restore
Update package lock, enforce locked restore in CI
2 parents 5403184 + 85bafd3 commit 091cc7e

File tree

4 files changed

+51
-3
lines changed

4 files changed

+51
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
- name: Setup .NET Core SDK
3030
uses: actions/setup-dotnet@v4
3131
with:
32-
dotnet-version: |
33-
9.x
32+
global-json-file: global.json
33+
cache: 'true'
34+
cache-dependency-path: '**/packages.lock.json'
3435

3536
- name: Set Default TAG
3637
run: echo "TAG=v0.0.0" >> $GITHUB_ENV

Directory.Build.props

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
<Project>
2+
<!-- NuGet Restore -->
3+
<PropertyGroup>
4+
<RestoreLockedMode Condition="'$(CI)' == 'true'">true</RestoreLockedMode>
5+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
6+
</PropertyGroup>
7+
<!-- SourceLink -->
28
<PropertyGroup>
39
<RepositoryType>git</RepositoryType>
410
<RepositoryUrl>https://github.com/escendit/tools-codeanalysis-roslyn</RepositoryUrl>
11+
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
12+
</PropertyGroup>
13+
<!-- Package Management -->
14+
<PropertyGroup>
15+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
516
</PropertyGroup>
17+
<!-- Package Commons -->
618
<ItemGroup>
719
<PackageReference Include="Escendit.Tools.Branding">
820
<PrivateAssets>all</PrivateAssets>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"sdk": {
33
"version": "9.0.304",
44
"rollForward": "latestMajor",
5-
"allowPrerelease": true
5+
"allowPrerelease": false
66
}
77
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"version": 2,
3+
"dependencies": {
4+
".NETStandard,Version=v2.0": {
5+
"Escendit.Tools.Branding": {
6+
"type": "Direct",
7+
"requested": "[1.2.0, )",
8+
"resolved": "1.2.0",
9+
"contentHash": "Tleka3RGcnG623z+4nxdGKINEQn9roCuNOPe0UHqckl4tndXfXEkWezEx011apR45Lqvc33KKrRnlDKv9kbRQQ=="
10+
},
11+
"NETStandard.Library": {
12+
"type": "Direct",
13+
"requested": "[2.0.3, )",
14+
"resolved": "2.0.3",
15+
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
16+
"dependencies": {
17+
"Microsoft.NETCore.Platforms": "1.1.0"
18+
}
19+
},
20+
"Microsoft.NETCore.Platforms": {
21+
"type": "Transitive",
22+
"resolved": "1.1.0",
23+
"contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A=="
24+
}
25+
},
26+
".NETStandard,Version=v2.1": {
27+
"Escendit.Tools.Branding": {
28+
"type": "Direct",
29+
"requested": "[1.2.0, )",
30+
"resolved": "1.2.0",
31+
"contentHash": "Tleka3RGcnG623z+4nxdGKINEQn9roCuNOPe0UHqckl4tndXfXEkWezEx011apR45Lqvc33KKrRnlDKv9kbRQQ=="
32+
}
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)