Skip to content

Upgrade .NET from v8 to v10#57

Merged
knocte merged 5 commits into
masterfrom
wip/srcMoveAndDotnet10
May 19, 2026
Merged

Upgrade .NET from v8 to v10#57
knocte merged 5 commits into
masterfrom
wip/srcMoveAndDotnet10

Conversation

@knocte
Copy link
Copy Markdown
Collaborator

@knocte knocte commented May 19, 2026

And move all F# projs to a src/ subdir.

This way the root dir of the repo is less poluted.
@knocte knocte force-pushed the wip/srcMoveAndDotnet10 branch 2 times, most recently from d7d28f4 to 4441d49 Compare May 19, 2026 08:34
knocte added 4 commits May 19, 2026 18:13
Even though we don't depend on Newtonsoft.Json directly, I guess
transitive deps were:

```
Running unit tests...

dotnet test /home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj
  Determining projects to restore...
/home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj : error NU1903: Warning As Error: Package 'Newtonsoft.Json' 9.0.1 has a known high severity vulnerability, GHSA-5crp-9r3c-p9vr
  Restored /home/runner/work/fsx/fsx/src/Fsdk/Fsdk.fsproj (in 229 ms).
  Failed to restore /home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj (in 229 ms).
Error when running 'dotnet test /home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj'
FSI_0003.Fsdk.Process+ProcessFailed: ProcessFailed
  "Error when running 'dotnet test /home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj'"
   at FSI_0003.Fsdk.Process.ProcessResult.Unwrap(String errMsg) in /home/runner/work/fsx/fsx/src/Fsdk/Process.fs:line 139
   at FSI_0003.Fsdk.Process.ProcessResult.UnwrapDefault() in /home/runner/work/fsx/fsx/src/Fsdk/Process.fs:line 151
   at FSI_0006.RunUnitTests() in /home/runner/work/fsx/fsx/scripts/runUnitTests.fsx:line 135
   at <StartupCode$FSI_0006>.$FSI_0006.main@() in /home/runner/work/fsx/fsx/scripts/runUnitTests.fsx:line 140
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Stopped due to error
Error: Process completed with exit code 1.
```
Otherwise we get warnings as errors that are kinda impossible to
fix today:
```
/home/runner/work/fsx/fsx/src/Fsdk/Network.fs(246,9):
error FS0044: This construct is deprecated. WebRequest,
HttpWebRequest, ServicePoint, and WebClient are obsolete.
Use HttpClient instead. Settings on ServicePointManager no
longer affect SslStream or HttpClient.
[/home/runner/work/fsx/fsx/src/fsx/fsx.fsproj]
```
I can't be bothered to fix them. If we need them in the future
then I will create stable branches or whatever.
@knocte knocte force-pushed the wip/srcMoveAndDotnet10 branch from cca5c71 to 4afc6e0 Compare May 19, 2026 10:13
@knocte knocte merged commit 5dfc93c into master May 19, 2026
12 checks passed
@knocte knocte deleted the wip/srcMoveAndDotnet10 branch May 19, 2026 10:46
knocte added a commit that referenced this pull request May 19, 2026
* Move F# projects to src/ subdir

This way the root dir of the repo is less poluted.

* Upgrade .NET from v8 to v10

* Fsdk.Tests: upgrade deps to fix build

Even though we don't depend on Newtonsoft.Json directly, I guess
transitive deps were:

```
Running unit tests...

dotnet test /home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj
  Determining projects to restore...
/home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj : error NU1903: Warning As Error: Package 'Newtonsoft.Json' 9.0.1 has a known high severity vulnerability, GHSA-5crp-9r3c-p9vr
  Restored /home/runner/work/fsx/fsx/src/Fsdk/Fsdk.fsproj (in 229 ms).
  Failed to restore /home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj (in 229 ms).
Error when running 'dotnet test /home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj'
FSI_0003.Fsdk.Process+ProcessFailed: ProcessFailed
  "Error when running 'dotnet test /home/runner/work/fsx/fsx/src/Fsdk.Tests/Fsdk.Tests.fsproj'"
   at FSI_0003.Fsdk.Process.ProcessResult.Unwrap(String errMsg) in /home/runner/work/fsx/fsx/src/Fsdk/Process.fs:line 139
   at FSI_0003.Fsdk.Process.ProcessResult.UnwrapDefault() in /home/runner/work/fsx/fsx/src/Fsdk/Process.fs:line 151
   at FSI_0006.RunUnitTests() in /home/runner/work/fsx/fsx/scripts/runUnitTests.fsx:line 135
   at <StartupCode$FSI_0006>.$FSI_0006.main@() in /home/runner/work/fsx/fsx/scripts/runUnitTests.fsx:line 140
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Stopped due to error
Error: Process completed with exit code 1.
```

* One more LEGACY_FRAMEWORK wrapping to fix build

Otherwise we get warnings as errors that are kinda impossible to
fix today:
```
/home/runner/work/fsx/fsx/src/Fsdk/Network.fs(246,9):
error FS0044: This construct is deprecated. WebRequest,
HttpWebRequest, ServicePoint, and WebClient are obsolete.
Use HttpClient instead. Settings on ServicePointManager no
longer affect SslStream or HttpClient.
[/home/runner/work/fsx/fsx/src/fsx/fsx.fsproj]
```

* CI: remove old lanes

I can't be bothered to fix them. If we need them in the future
then I will create stable branches or whatever.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant