microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.85k stars 328 forks source link

Unable to build even Wizard WinUI App #4709

Open LucaCris opened 2 months ago

LucaCris commented 2 months ago

Describe the bug

The upgrade from 1.5 to 1.6 is not working, so I tested a completely new WinUI 3 app and: not working.

Steps to reproduce the bug

Make a brand new:

immagine

Checks that all nugets are updated.

Build.

Errors/warnings will be issued (see Additional context).

Windows 11, fully updated.

Expected behavior

As for previous SDK update: build with no errors.

Screenshots

No response

NuGet package version

Windows App SDK 1.6.0: 1.6.240829007

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

Build started at 11:50... 1>------ Build started: Project: App9, Configuration: Debug x64 ------ [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "WinRT.Runtime" that could not be resolved. [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" and "WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: "WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" was chosen because it was primary and "WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" was not. [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on "WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" [C:\Users\Luca.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.34\lib\net6.0\WinRT.Runtime.dll]. [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.34\lib\net6.0\WinRT.Runtime.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.34\lib\net6.0\WinRT.Runtime.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.34\lib/net6.0/WinRT.Runtime.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on or have been unified to "WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" []. [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.web.webview2\1.0.2651.64\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.web.webview2\1.0.2651.64\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.web.webview2\1.0.2651.64\build..\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.InteractiveExperiences.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.InteractiveExperiences.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.InteractiveExperiences.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppLifecycle.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppLifecycle.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppLifecycle.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Builder.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Builder.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Builder.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Builder.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Management.Deployment.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.Resources.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.Resources.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.Resources.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Management.Deployment.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Management.Deployment.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Management.Deployment.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.PushNotifications.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.PushNotifications.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.PushNotifications.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Security.AccessControl.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Security.AccessControl.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Security.AccessControl.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Storage.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Storage.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Storage.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Power.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Power.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Power.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Widgets.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Widgets.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Widgets.Projection.dll [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : This version of the Windows App SDK requires Microsoft.Windows.SDK.NET.Ref 10.0.19041.38 or later. [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : Please update to .NET SDK 6.0.134, 6.0.426, 8.0.109, 8.0.305 or 8.0.402 (or later). [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : Or add a temporary Microsoft.Windows.SDK.NET.Ref reference which can be added with: [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : 10.0.19041.38 [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : 1>Done building project "App9.csproj" -- FAILED. 2>------ Build started: Project: App9 (Package), Configuration: Debug x64 ------ [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "WinRT.Runtime" that could not be resolved. [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" and "WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: "WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" was chosen because it was primary and "WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" was not. [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on "WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" [C:\Users\Luca.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.34\lib\net6.0\WinRT.Runtime.dll]. [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.34\lib\net6.0\WinRT.Runtime.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.34\lib\net6.0\WinRT.Runtime.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windows.sdk.net.ref\10.0.19041.34\lib/net6.0/WinRT.Runtime.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on or have been unified to "WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709" []. [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.web.webview2\1.0.2651.64\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.web.webview2\1.0.2651.64\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.web.webview2\1.0.2651.64\build..\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.InteractiveExperiences.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.InteractiveExperiences.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.InteractiveExperiences.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppLifecycle.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppLifecycle.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppLifecycle.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Builder.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Builder.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Builder.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.AppNotifications.Builder.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Management.Deployment.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.Resources.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.Resources.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.Resources.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.WinUI.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Management.Deployment.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Management.Deployment.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Management.Deployment.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.PushNotifications.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.PushNotifications.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.PushNotifications.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Security.AccessControl.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Security.AccessControl.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Security.AccessControl.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Storage.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Storage.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Storage.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Power.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Power.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Power.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.System.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Widgets.Projection.dll [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Widgets.Projection.dll". [..]\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: C:\Users\Luca.nuget\packages\microsoft.windowsappsdk\1.6.240829007\lib\net6.0-windows10.0.18362.0\Microsoft.Windows.Widgets.Projection.dll [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : This version of the Windows App SDK requires Microsoft.Windows.SDK.NET.Ref 10.0.19041.38 or later. [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : Please update to .NET SDK 6.0.134, 6.0.426, 8.0.109, 8.0.305 or 8.0.402 (or later). [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : Or add a temporary Microsoft.Windows.SDK.NET.Ref reference which can be added with: [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : 10.0.19041.38 [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : [..].nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets(76,9): error : 2>Done building project "App9.csproj" -- FAILED. ========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ========== ========== Build completed at 11:50 and took 00,937 seconds ==========

DominikErnst commented 2 months ago

Add following to your Project File

`

10.0.19041.38

`

LucaCris commented 2 months ago

Add following to your Project File

<PropertyGroup> <WindowsSdkPackageVersion>10.0.19041.38</WindowsSdkPackageVersion> </PropertyGroup>

.38 .... I prefer no tricks, thanks!

DarranRowe commented 2 months ago

Even if these "tricks" are part of the release notes?

These changes will be unnecesary when the newest .NET SDK is released.

trlambert1 commented 2 months ago

Why would they release an SDK before the supporting .NET version is released? I would think this should just work out of the box.

This has been a problem of mine for a week now. I finally figured out I had to open the csproj file directly as I could not do so from within the IDE.

LucaCris commented 2 months ago

Even if these "tricks" are part of the release notes?

These changes will be unnecesary when the newest .NET SDK is released.

So wait to release all in the same time!

We are professional devs, not teenagers studying .NET at home... :)

DominikErnst commented 2 months ago

@LucaCris That's funny because 1. it's not a trick or a workaround and 2. it qualifies you as a beginner. A professional would quickly google the solution and deal with BUGs! And 3. you could thank me for my help and not whine like a Karen.

LucaCris commented 2 months ago

@LucaCris That's funny because 1. it's not a trick or a workaround and 2. it qualifies you as a beginner. A professional would quickly google the solution and deal with BUGs! And 3. you could thank me for my help and not whine like a Karen.

I forgive you because you don't know... ❤️

DominikErnst commented 2 months ago

@LucaCris Ah, you're a conspiracy theorist, that explains a lot.

Natriss commented 1 month ago

Even if these "tricks" are part of the release notes?

These changes will be unnecesary when the newest .NET SDK is released.

I fully agree with this. Not only is it weird not to include this when building a new app. You have to do that same thing over and over again for new applications. It's super annoying. Not only that everything before 1.6 didn't require to do this when building a new app.

Everything you start with fresh is and always has been build ready until now? It's such a weird move and unnecessary to do when creating new applications.

LucaCris commented 1 month ago

Please give us a clean and "as always" upgrade step.

Even for @DominikErnst ... he also deserve it. 👍