Skip to content

Fsdk/Misc: workaround in FsxOnlyArguments#63

Merged
knocte merged 1 commit into
tarsgate:masterfrom
webwarrior-ws:fsi-args-fix
Jun 18, 2026
Merged

Fsdk/Misc: workaround in FsxOnlyArguments#63
knocte merged 1 commit into
tarsgate:masterfrom
webwarrior-ws:fsi-args-fix

Conversation

@webwarrior-ws

@webwarrior-ws webwarrior-ws commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Filter out preferreduilang argument from script args in FsxOnlyArguments() function. This argument started to appear in .NET 10 when running .fsx scripts, breaking existing scripts. It was then removed from fsi.CommandLineArgs, but not from Environment.GetCommandLineArgs(), see [1]. Value fsi.CommandLineArgs can't be used in the library, as it is only available in fsx scripts.

[1] dotnet/fsharp#19151

Filter out `preferreduilang` argument from script args in
FsxOnlyArguments() function. This argument started to appear
in .NET 10 when running .fsx scripts, breaking existing
scripts. It was then removed from fsi.CommandLineArgs, but not
from Environment.GetCommandLineArgs(), see [1]. Value
fsi.CommandLineArgs can't be used in the library, as it is
only available in fsx scripts.

[1] dotnet/fsharp#19151
@webwarrior-ws webwarrior-ws changed the title Fsdk/Misc: remove extra arg in FsxOnlyArguments Fsdk/Misc: workaround in FsxOnlyArguments Jun 18, 2026
@knocte knocte merged commit 79ec1be into tarsgate:master Jun 18, 2026
6 checks passed
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.

2 participants