Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinUI][.NET 8] Class Library build failed with a warning NETSDK1206 #8599

Open
XamlTest opened this issue Jul 3, 2023 · 5 comments
Open
Labels
bug Something isn't working team-Markup Issue for the Markup team

Comments

@XamlTest
Copy link

XamlTest commented Jul 3, 2023

Describe the bug

There is a warning after build Class Library (WinUI 3 in Desktop) project successfully with .NET 8.0.100-preview.6.23330.14.

Warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): win10-arm64, win10-x64, win10-x86. Affected libraries: Microsoft.WindowsAppSDK. 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.

Steps to reproduce the bug

Environment:
OS Version: Win11x64 & Win11-ARM64
VS Build: 17.7.0 Preview 3.0 [33901.74.d17.7]
.NET Version: .NET 8.0.100-preview.6.23330.14

More info:
This issue does not reproduce on .NET 6.

Repro Steps:

  1. Make sure .NET SDK(Preview) and .NET 8.0 Runtime are installed from installer.
  2. Add dotnet 8 feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/8.0.100-preview.6.23330.14-shipping/nuget/v3/index.json
  3. Create a Class Library (WinUI 3 in Desktop) project.
  4. Update the TargetFramework to <TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
  5. Save and Build

Expected Result:
Build successfully without error.

Actual Result:
There is a warning: NETSDK1206
image

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.3.2: 1.3.230602002

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@XamlTest XamlTest added the bug Something isn't working label Jul 3, 2023
@XamlTest XamlTest changed the title [WinUI][.NET 8.0.100-preview.6.23330.14] Class Library build failed with a warning NETSDK1206 [WinUI][.NET 8] Class Library build failed with a warning NETSDK1206 Jul 27, 2023
@bpulliam bpulliam added the team-Markup Issue for the Markup team label Aug 9, 2023
@michael-hawker
Copy link
Collaborator

Is #8801 related?

@Scottj1s
Copy link
Member

Scottj1s commented Jan 3, 2024

Windows App SDK 1.4.4 will be released shortly and includes support for portable RIDs, so the UseRidGraph workaround will no longer be necessary.

@XamlTest
Copy link
Author

We tried on the latest VS(17.10 Preview 3) and latest Windows App SDK(1.5.240311000), the issue still repro with below steps:

  1. Create Class Library (WinUI 3 in Desktop).
  2. Build.

Actual: There is a Warning NETSDK1206.
image

@molesmoke
Copy link

Still seeing this in v1.5.240428000

@jeremy-visionaid
Copy link

Still present in v1.5.240607001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

6 participants