Skip to content

[repo-assist] Recognize netcoreapp6.0-10.0 monikers when detecting platforms - #4425

Open
github-actions[bot] wants to merge 1 commit into
masterfrom
repo-assist/fix-issue-4239-netcoreapp-monikers-73077d1ab172ba1f
Open

[repo-assist] Recognize netcoreapp6.0-10.0 monikers when detecting platforms#4425
github-actions[bot] wants to merge 1 commit into
masterfrom
repo-assist/fix-issue-4239-netcoreapp-monikers-73077d1ab172ba1f

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🤖 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.0 instead of the recommended net8.0. Paket's platform-detection pattern match in FrameworkHandling.fs had a special case only for "netcoreapp5.0" (mapping it to .NET 5), but no equivalent case for netcoreapp6.0, 7.0, 8.0, 9.0 or 10.0. Once the leading dot is normalized away, these monikers fell through to the generic DotNetCoreApp pattern, whose backing DotNetCoreAppVersion type 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.0 through netcoreapp10.0, mapping each to the corresponding DotNetFramework FrameworkVersion.Vx, consistent with the existing netcoreapp5.0 special case.

Trade-offs

This is a minimal, surgical addition alongside the existing special-case pattern rather than a broader refactor of DotNetCoreAppVersion to support post-3.1 versions generically. That keeps the change low-risk, matching the precedent already set for netcoreapp5.0.

Test Status

  • Added six new unit tests in tests/Paket.Tests/Versioning/PlatformMatchingSpecs.fs for .netcoreapp6.0 through .netcoreapp10.0.
  • dotnet test tests/Paket.Tests/Paket.Tests.fsproj --filter "FullyQualifiedName~PlatformMatchingSpecs" -c Release: 58/58 passed on net10.0.
  • The net461 test pass could not run in this sandbox (mono host unavailable), which is an environment limitation unrelated to this change, not a test failure.

Generated by 🌈 Repo Assist, see workflow run. Learn more.
Comment /repo-assist to run again

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@ae8d551f07c7ed7619f8c58c7bb4c3ac89395d38

Closes #4239

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dsyme
dsyme marked this pull request as ready for review September 3, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could not detect any platforms warning

0 participants