Build error occurred when C# console app installed WinAppSDK 1.6 #4854
Labels
area-DeveloperTools
Issues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration
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>
The text was updated successfully, but these errors were encountered: