Skip to content

linuxsettings: Fix CS0121 string.Split call ambiguity with .NET 8.0#2287

Merged
mjcheetham merged 1 commit intogit-ecosystem:mainfrom
chewi:linux-config-parser-ambiguity
Mar 12, 2026
Merged

linuxsettings: Fix CS0121 string.Split call ambiguity with .NET 8.0#2287
mjcheetham merged 1 commit intogit-ecosystem:mainfrom
chewi:linux-config-parser-ambiguity

Conversation

@chewi
Copy link
Contributor

@chewi chewi commented Mar 11, 2026

The error in full:

error CS0121: The call is ambiguous between the following methods or properties: 'string.Split(char[]?, StringSplitOptions)' and 'string.Split(string?, StringSplitOptions)' [src/shared/Core/Core.csproj::TargetFramework=net8.0]

@chewi chewi requested a review from a team as a code owner March 11, 2026 12:26
@chewi
Copy link
Contributor Author

chewi commented Mar 12, 2026

Evidently, that doesn't work for Windows for some reason. There is another way to do it, so I'll try that.

The error in full:

    error CS0121: The call is ambiguous between the following methods or properties: 'string.Split(char[]?, StringSplitOptions)' and 'string.Split(string?, StringSplitOptions)' [src/shared/Core/Core.csproj::TargetFramework=net8.0]

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
@chewi chewi force-pushed the linux-config-parser-ambiguity branch from 5282394 to 271d13e Compare March 12, 2026 09:52
@chewi chewi requested a review from mjcheetham March 12, 2026 09:52
@mjcheetham mjcheetham enabled auto-merge March 12, 2026 14:29
@mjcheetham mjcheetham merged commit 92a1fd6 into git-ecosystem:main Mar 12, 2026
10 checks passed
@chewi chewi deleted the linux-config-parser-ambiguity branch March 12, 2026 16:04
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