Warning NETSDK1206 during build on .NET 8.0+ #157

Open
opened 2026-01-29 16:30:47 +00:00 by claunia · 0 comments
Owner

Originally created by @MelnikovIG on GitHub (Sep 16, 2025).

We get following error during using Packaging.Targets on .NET 8.0. Looks like Packaging.Targets lib using outdated runtime identifier win7-x64. Can this be fixed somehow in library?

/usr/share/dotnet/sdk/8.0.413/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(284,5): warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): win7-x64. Affected libraries: Packaging.Targets. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.

Originally created by @MelnikovIG on GitHub (Sep 16, 2025). We get following error during using `Packaging.Targets` on .NET 8.0. Looks like `Packaging.Targets` lib using outdated runtime identifier `win7-x64`. Can this be fixed somehow in library? `/usr/share/dotnet/sdk/8.0.413/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(284,5): warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): win7-x64. Affected libraries: Packaging.Targets. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#157