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
{{ message }}
Repository navigation
Microsoft.NET.Test.Sdk: nupkg with TargetFramework=native0.0 #15366
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.
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.
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 😆
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.
Activity
nohwnd commentedon Jan 21, 2026
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.
nohwnd commentedon Jan 21, 2026
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
nicholi commentedon Jan 21, 2026
Similar warning from paket with that package
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
nativeas a TFM/platform. For now will just ignore the warning 😆nicholi commentedon Feb 12, 2026
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 usingnative0.0now. So I assume it's likely some common tool used between the projects. Or a new version of tool which changed behavior to outputnative0.0.nohwnd commentedon Feb 12, 2026
In our case it was c++ test projects in code coverage repo that started failing.
nohwnd commentedon May 13, 2026
Closing — the
ative0.0 TFM is documented and by design.