Open LegendaryBlair opened 3 weeks ago
Looks like we will need a check for when someone is not targeting the Windows OS version target framework which I assume was the case here.
This is documented in the release notes: https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/stable-channel#c-project-changes-1
Describe the bug
I have a simple C# console app for .Net 6, installing Win app SDK 1.6 and then build is failing with the error message:
Steps to reproduce the bug
Expected behavior
No build error.
Screenshots
NuGet package version
Windows App SDK 1.6.1: 1.6.240923002
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
The message is not actionable, I already installed .NET SDK 6.0.427, which is greater than .NET SDK 6.0.426 mentioned in the error message. NOTE: in the .NET download page https://dotnet.microsoft.com/en-us/download/dotnet/6.0, there's no .NET SDK 6.0.426.
dotnet --list-sdks 6.0.427 [C:\Program Files\dotnet\sdk] 8.0.403 [C:\Program Files\dotnet\sdk]
NOTE: Workaround exists. I need to manually update the csproj to the following to make it work.
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>