You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some packages use nonstandard (?) monikers in nuspec. AWSSDK.Core includes <group targetFramework=".NETCoreApp8.0" />, while Paket supposedly expects net8.0.
Repro steps
Create a net8.0 project
paket add AWSSDK.Core 3.7.300.4
Expected behavior
Package added cleanly.
Actual behavior
Warning Could not detect any platforms from '.netcoreapp8.0' in 'C:\Users\goof\.nuget\packages\awssdk.core\3.7.300.4\awssdk.core.nuspec', please tell the package authors, and I assume Paket then doesn't use the net8.0 assembly from the package.
Makes me wonder if we should have unit tests that scrape nuget.org (or basically, calls into the same code used there) to assert we match the same targets as shown on the page, nuget.org shows correct resolution.
Thanks for the detailed investigation! I traced the root cause: Paket's platform-detection code special-cases netcoreapp5.0 (mapping it to .NET 5) but had no equivalent handling for netcoreapp6.0–10.0. Since AWSSDK.Core's nuspec uses the nonstandard .netcoreapp8.0 moniker, it fell through all known patterns and triggered the "Could not detect any platforms" warning.
I've opened a draft PR extending the special-case handling to cover netcoreapp6.0 through netcoreapp10.0, with new unit tests: the PR will appear linked to this issue shortly.
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
Activity
smoothdeveloper commentedon Dec 16, 2023
https://learn.microsoft.com/en-us/nuget/reference/target-frameworks#supported-frameworks
yes it seems non standard.
Makes me wonder if we should have unit tests that scrape nuget.org (or basically, calls into the same code used there) to assert we match the same targets as shown on the page, nuget.org shows correct resolution.
smoothdeveloper commentedon Dec 16, 2023
https://github.com/NuGet/NuGetGallery/blob/e56384290f44bd4cc163cc94eff17bd3e63ac3c2/src/NuGetGallery.Core/Frameworks/PackageFrameworkCompatibilityFactory.cs#L47
Recognize netcoreapp6.0-10.0 monikers when detecting platforms
github-actions commentedon Sep 1, 2026
🤖 This is an automated response from Repo Assist.
Thanks for the detailed investigation! I traced the root cause: Paket's platform-detection code special-cases
netcoreapp5.0(mapping it to .NET 5) but had no equivalent handling fornetcoreapp6.0–10.0. SinceAWSSDK.Core's nuspec uses the nonstandard.netcoreapp8.0moniker, it fell through all known patterns and triggered the "Could not detect any platforms" warning.I've opened a draft PR extending the special-case handling to cover
netcoreapp6.0throughnetcoreapp10.0, with new unit tests: the PR will appear linked to this issue shortly.Add this agentic workflow to your repo
To install this agentic workflow, run