Skip to content

Support for TargetFramework=native #4318

@nicholi

Description

@nicholi

Only microsoft "documentation" I can find for this TFM is that it is listed here as a valid name: https://learn.microsoft.com/en-us/nuget/reference/target-frameworks

The last 3 published versions of Microsoft.NET.Test.Sdk have been adding an otherwise empty native0.0 TFM to it's .nuspec. No actual scripts/files seem to be setup with the TFM. Which is resulting in the harmless warning about an unknown platform from paket:

$ dotnet paket install
Paket version 10.3.1+bbc45f336c7f9bac95cf1d17267ab2383d029682
Installing into projects:
Created dependency graph (# packages in total)
Could not detect any platforms from 'native0.0' in '/home/user/.nuget/packages/microsoft.net.test.sdk/17.14.1/microsoft.net.test.sdk.nuspec', please tell the package authors

Pretty much the same as the warning we got for .net10 TFMs prior to .net10 support getting added.

I raised an Issue on their github to get some further clarifications, and it seems like the TFM is intended to be there, even though it does nothing in the actual package (as of right now). As the dev there mentioned it was a necessity for their build process/sln structure, so it won't be going away.

Should support for native get added to paket so it at least recognizes the TFM? As it seems intended to be fully supported by Microsoft, and some packages are beginning to add to it (though I suspect it will be quite rare). Or maybe it should just be explicitly ignored for now?

Otherwise the Microsoft.NET.Test.Sdk package installs just fine, and no issues using any dotnet tests. Just that extra yellow warning on every dotnet paket install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions