Windows App SDK - Exception Thrown

Hemanth B 886 Reputation points
2022-04-17T11:34:18.563+00:00

I created an unpackaged WinUI App using the Windows App SDK and followed the steps in this link: https://learn.microsoft.com/en-us/windows/apps/winui/winui3/create-your-first-winui3-app#unpackaged-create-a-new-project-for-an-unpackaged-c-or-c-winui-3-desktop-app.
This was the result:
193585-image.png

Please help!
In this link: https://github.com/microsoft/WindowsAppSDK/discussions/1933, the answer is not accurate and I am not sure how to reinstall the Windows SDK Runtime

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
739 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 82,576 Reputation points
    2022-04-17T12:05:13.46+00:00

    The Windows App SDK Runtime version must be the same as the Windows App SDK NuGet Package version
    Currently, both must be 1.1.0-preview1 :

    193560-winui3-version.jpg

    Installed Runtimes :

    C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.1-preview1_1000.447.2307.0_x64__8wekyb3d8bbwe
    C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.1-preview1_1000.447.2307.0_x86__8wekyb3d8bbwe

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful