Skip to content

Commit f2f3c16

Browse files
committed
GitHubCI: set DOTNET_ROLL_FORWARD=major for fsxc
Otherwise we would get this error (because the version of fsxc that we're using was built with net6.x): ``` dotnet fsxc ./scripts/bump.fsx You must install or update .NET to run this application. App: D:\a\geewallet\geewallet\packages\fsxc\0.5.9.1\tools\net6.0\any\fsxc.dll Architecture: x64 Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64) .NET location: C:\Program Files\dotnet\ The following frameworks were found: 8.0.6 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 8.0.21 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 8.0.22 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 9.0.6 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 9.0.10 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 10.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] The following frameworks for other architectures were found: x86 8.0.21 at [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] 9.0.10 at [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Learn more: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=win-x64&os=win10 ```
1 parent 2a55b3a commit f2f3c16

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
# we need to install specific version because of this bug: https://github.com/dotnet/sdk/issues/24037
6161
dotnet tool install fsxc --version 0.5.9.1
6262
63+
# fsxc was built with .NET6.x
64+
export DOTNET_ROLL_FORWARD=major
65+
6366
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
6467
6568
macOS--mono-only:
@@ -155,6 +158,9 @@ jobs:
155158
# we need to install specific version because of this bug: https://github.com/dotnet/sdk/issues/24037
156159
dotnet tool install fsxc --version 0.5.9.1
157160
161+
# fsxc was built with .NET6.x
162+
export DOTNET_ROLL_FORWARD=major
163+
158164
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
159165
160166
windows--legacyFramework-only:
@@ -214,6 +220,9 @@ jobs:
214220
# we need to install specific version because of this bug: https://github.com/dotnet/sdk/issues/24037
215221
dotnet tool install fsxc --version 0.5.9.1
216222
223+
# fsxc was built with .NET6.x
224+
export DOTNET_ROLL_FORWARD=major
225+
217226
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
218227
219228
linux24-github--dotnet-and-mono:
@@ -344,6 +353,9 @@ jobs:
344353
# we need to install specific version because of this bug: https://github.com/dotnet/sdk/issues/24037
345354
dotnet tool install fsxc --version 0.5.9.1
346355
356+
# fsxc was built with .NET6.x
357+
export DOTNET_ROLL_FORWARD=major
358+
347359
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
348360
349361
linux24-vanilla--stockdotnet-and-newmono:
@@ -388,6 +400,9 @@ jobs:
388400
# we need to install specific version because of this bug: https://github.com/dotnet/sdk/issues/24037
389401
dotnet tool install fsxc --version 0.5.9.1
390402
403+
# fsxc was built with .NET6.x
404+
export DOTNET_ROLL_FORWARD=major
405+
391406
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
392407
393408
linux24-vanilla--stockdotnet-and-stockmono:
@@ -430,6 +445,9 @@ jobs:
430445
# we need to install specific version because of this bug: https://github.com/dotnet/sdk/issues/24037
431446
dotnet tool install fsxc --version 0.5.9.1
432447
448+
# fsxc was built with .NET6.x
449+
export DOTNET_ROLL_FORWARD=major
450+
433451
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
434452
435453
linux24-vanilla--newmono-only:

0 commit comments

Comments
 (0)