[Docs] [Depedency] WinAppSDK app compiles fine but is unable to be deployed - Provide the framework "Microsoft.VCLibs.140.00.Debug.UWPDesktop"
Describe the bug
WinAppSDK app compiles fine but is unable to be deployed in Debug mode. Release mode works fine but most devs would want Debug mode for the Dev Inner Loop
Error is: DEP0700: Registration of the app failed. [0x80073CF3] Windows cannot install package MyApp_1.5.4.0_arm64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00.Debug.UWPDesktop" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or ARM64 processor architecture and minimum version 14.0.30704.0, along with this package to install.
Root cause: Visual Studio was setup with clean install for .NET and WinAppSDK modern development. There is a missing VS component that does not get installed even if you follow the WinAppSDK release notes
P.S. This was a bit of a pain to track down the root cause
Steps to reproduce the bug
- On clean machine install Visual Studio. The machine may need to be an ARM machine due to how this bug manifests
- Follow the WinAppSDK release notes to setup Visual Studio for WinAppSDK with .NET
- https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/set-up-your-development-environment?tabs=cs-vs-community%2Ccpp-vs-community%2Cvs-2022-17-1-a%2Cvs-2022-17-1-b#required-workloads-and-components
- Install ".NET Desktop Development" & "Windows 10/11 SDK" per the instructions
- DO NOT install UWP has we are writing a WinUI3 app, not UWP. Don't install the "WinAppSDK C# Templates" if say you already have an existing WinAppSDK project
- With this setup (at least on ARM) you will be left with a VS install that is missing Debug libraries needed. So basically the release notes are missing incomplete
- P.S. The missing component needed is “C++ Universal Windows Platform support for v143 build tools (ARM64/ARM64EC)” which comes with UWP currently as of VS 17.10
Expected behavior
- Better error message instructing the user what to do
- Better release notes instruction the user what to if they want a modern VS w/o UWP and only C# / WinAppSDK
Screenshots
No response
NuGet package version
Windows App SDK 1.5.2: 1.5.240404000
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response