Skip to content

Could not detect any platforms warning #4239

Closed

Description

@kerams

Description

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.

Known workarounds

None.

Activity

  1. smoothdeveloper commented on Dec 16, 2023

    @smoothdeveloper
    Contributor

    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.

  2. added a commit that references this issue on Sep 1, 2026
    fa85356
  3. github-actions commented on Sep 1, 2026

    @github-actions
    Contributor

    🤖 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 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
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions