[repo-assist] Recognize netcoreapp6.0-10.0 monikers when detecting platforms - #4425
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
Closes #4239 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dsyme
marked this pull request as ready for review
September 3, 2026 18:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 This is an automated pull request from Repo Assist, an automated AI assistant.
Closes #4239
Root cause
Some NuGet packages (e.g.
AWSSDK.Core) ship assets under nonstandard nuspec target-framework monikers such as.netcoreapp8.0instead of the recommendednet8.0. Paket's platform-detection pattern match inFrameworkHandling.fshad a special case only for"netcoreapp5.0"(mapping it to.NET 5), but no equivalent case fornetcoreapp6.0,7.0,8.0,9.0or10.0. Once the leading dot is normalized away, these monikers fell through to the genericDotNetCoreApppattern, whose backingDotNetCoreAppVersiontype only covers versions 1.0–3.1, so parsing failed and Paket emitted "Could not detect any platforms from ...".Fix
Added explicit match cases for
netcoreapp6.0throughnetcoreapp10.0, mapping each to the correspondingDotNetFramework FrameworkVersion.Vx, consistent with the existingnetcoreapp5.0special case.Trade-offs
This is a minimal, surgical addition alongside the existing special-case pattern rather than a broader refactor of
DotNetCoreAppVersionto support post-3.1 versions generically. That keeps the change low-risk, matching the precedent already set fornetcoreapp5.0.Test Status
tests/Paket.Tests/Versioning/PlatformMatchingSpecs.fsfor.netcoreapp6.0through.netcoreapp10.0.dotnet test tests/Paket.Tests/Paket.Tests.fsproj --filter "FullyQualifiedName~PlatformMatchingSpecs" -c Release: 58/58 passed onnet10.0.net461test pass could not run in this sandbox (monohost unavailable), which is an environment limitation unrelated to this change, not a test failure.Add this agentic workflow to your repo
To install this agentic workflow, run