Skip to content

Microsoft.NET.Test.Sdk: nupkg with TargetFramework=native0.0 #15366

Closed

Description

Since version 17.14.1 the published nupkg has an additional TFM defined as, targetFramework="native0.0". Which otherwise seems to be a TFM that does nothing, it has an empty lib/native directory.

Raising this issue primarily to find out if this TFM was intentionally added, or perhaps something that just got overlooked and should get removed or just otherwise not added when generating the .nuspec.

I am actually a user of paket, which is an alternative nuget client/package management tool. Whenever it installs the Microsoft.NET.Test.Sdk nupkg it also prints a warning about the unknown TFM.

$ 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

Which is probably just comparing against all the older .NET Framework and .NET Core TFM names we've had over the years, but native0.0 isn't recognized as anything. Not an issue or any warning with the standard nuget client, likely just ignores it completely.

If this TFM is intended to be present, I expect this Issue to be closed. I will raise another Issue with Paket devs to see if native#.# should be recognized as a known platform. As Microsoft.NET.Test.Sdk is a pretty significant package to cite with a special TFM. Just looking to cut down on odd build warnings.

Activity

  1. nohwnd commented on Jan 21, 2026

    @nohwnd
    Member

    https://learn.microsoft.com/en-us/nuget/reference/target-frameworks native is supported by nuget, and this was introduced in #15072 however I cannot think about a reason why we should have native target (and I was the one adding the change), and it should not be in lib probably. Reverting that part of the change.

  2. nohwnd commented on Jan 21, 2026

    @nohwnd
    Member

    Found the reason for native, it was breaking projects in code coverage that are vcxproj. so it has to stay.

    Can you try restoring and building with this package ? it also targets native and has similar shape to what we have: https://nuget.info/packages/Mile.Xaml/2.0.616

  3. nicholi commented on Jan 21, 2026

    @nicholi
    Author

    Similar warning from paket with that package

    Downloading Mile.Windows.Helpers 1.0.1171
    Download of Mile.Windows.Helpers 1.0.1171 done in 615 milliseconds. (644 kbit/s, 0 MB)
    Downloading Mile.Xaml 2.5.1250
    Download of Mile.Xaml 2.5.1250 done in 756 milliseconds. (23651 kbit/s, 2 MB)
    Could not detect any platforms from 'native0.0' in '/home/user/.nuget/packages/mile.xaml/2.5.1250/mile.xaml.nuspec', please tell the package authors
    

    Also just to be clear, not having any issue using the nupkg or performing any dotnet tests at all. Which is fine for now I suppose since there are no scripts/files attached to the TFM. It really is just your typical "soft" warning about a platform it doesn't recognize. It had printed the same warning for nupkg's targeting .net10 before support for it was added. So it's probably a very simple rudimentary check against a list of known platforms somewhere (not too knowledgeable to speak on it really though). I had only recently noticed the blaring yellow text after an update of Microsoft.Net.Test.Sdk, and wanted to dig a little deeper just to be sure. Thanks for the clarifications about it's necessity though.

    Will start a discussion over at paket about native as a TFM/platform. For now will just ignore the warning 😆

  4. nicholi commented on Feb 12, 2026

    @nicholi
    Author

    Jakub Jareš (@nohwnd) would happen to know which component/tool in the building pipeline is responsbile for adding in native0.0? Or maybe just generally where to look a little more closely?

    Trying to get more information about usage of that TFM in particular, and what/if there are any differences from native. I see there are quite a few other Microsoft nupkg's also specifically using native0.0 now. So I assume it's likely some common tool used between the projects. Or a new version of tool which changed behavior to output native0.0.

  5. nohwnd commented on Feb 12, 2026

    @nohwnd
    Member

    In our case it was c++ test projects in code coverage repo that started failing.

  6. nohwnd commented on May 13, 2026

    @nohwnd
    Member

    Closing — the
    ative0.0 TFM is documented and by design.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions