Skip to content

Commit 4bc571a

Browse files
committed
Use the new officially supported way to roll forward dotnet global tools
Implemented in [dotnet tool run and install roll-forward option][1]. Supported [since the .NET SDK v8.0.300][2]. Documented in [ .NET tool roll-forward][3]. [1]: dotnet/sdk#37231 [2]: dotnet/sdk@dc2a5fe [3]: https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/sdk#net-tool-roll-forward
1 parent d3d8c49 commit 4bc571a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.config/dotnet-tools.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
"version": "0.0.1-preview.304",
77
"commands": [
88
"dotnet-validate"
9-
]
9+
],
10+
"rollForward": true
1011
},
1112
"dotnet-stryker": {
1213
"version": "4.0.6",
1314
"commands": [
1415
"dotnet-stryker"
15-
]
16+
],
17+
"rollForward": true
1618
}
1719
}
1820
}

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/global",
33
"sdk": {
4-
"version": "8.0.100",
4+
"version": "8.0.300",
55
"allowPrerelease": false,
66
"rollForward": "latestFeature"
77
}

src/Serilog.Formatting.Log4Net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<Target Name="ValidateNuGetPackage" AfterTargets="Pack">
6666
<!-- For reference: the file `.config/dotnet-tools.json` was created by running `dotnet new tool-manifest && dotnet tool install dotnet-validate` -->
6767
<Exec Command="dotnet tool restore" />
68-
<Exec Command="dotnet validate package local $([MSBuild]::EnsureTrailingSlash($(PackageOutputPath)))$(PackageId).$(PackageVersion).nupkg" EnvironmentVariables="DOTNET_ROLL_FORWARD=LatestMajor" />
68+
<Exec Command="dotnet validate package local $([MSBuild]::EnsureTrailingSlash($(PackageOutputPath)))$(PackageId).$(PackageVersion).nupkg" />
6969
</Target>
7070

7171
</Project>

0 commit comments

Comments
 (0)