Skip to content

Using the independent WinUI 3 package, Visual Studio cannot find the WinUI template #5923

Closed

Description

Describe the bug

Using the independent (Windows App SDK)WinUI 3 package, Visual Studio cannot find the WinUI template

---------------------------------------------------

使用独立的 (Windows App SDK)WinUI 3 包,Visual Studio 找不到 WinUI 模板


Seperate WinUI 3 Nuget package
Image

Windows AppSDK metdata Nuget package
Image

Steps to reproduce the bug

See description

Expected behavior

See description

Screenshots

See description

NuGet package version

Windows App SDK 1.8.2: 1.8.251003001

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 24H2 (26100, June 2025 Update)

IDE

No response

Additional context

No response

Activity

  1. ssparach commented on Oct 21, 2025

    @ssparach
    Contributor

    Thanks so much for opening this issue! Could you share a bit more detail and the exact steps you followed to reproduce it?
    It would also help to know whether this involved a WinUI control template not being visible, and which Visual Studio version you’re using.

  2. Gaoyifei1011 commented on Oct 21, 2025

    @Gaoyifei1011
    Author

    Thanks so much for opening this issue! Could you share a bit more detail and the exact steps you followed to reproduce it? It would also help to know whether this involved a WinUI control template not being visible, and which Visual Studio version you’re using.

    This is my Visual Studio version. I use VS 2026 Insiders.
    Image

    After creating the WinUI 3 project, modify <PackageReference` Include="Microsoft.WindowsAppSDK" Version="1.8.251003001" /> under csproj to

    <PackageReference Include="Microsoft.WindowsAppSDK.Base" Version="1.8.250831001" />
    <PackageReference Include="Microsoft.WindowsAppSDK.Foundation" Version="1.8.250906002" />
    <PackageReference Include="Microsoft.WindowsAppSDK.InteractiveExperiences" Version="1.8.250906004" GeneratePathProperty="True" />
    <PackageReference Include="Microsoft.WindowsAppSDK.Runtime" Version="1.8.251003001" />
    <PackageReference Include="Microsoft.WindowsAppSDK.WinUI" Version="1.8.250906003" GeneratePathProperty="True" IncludeAssets="None" PrivateAssets="all" />
    

    , restart Visual Studio, and then create a new template

  3. ssparach commented on Oct 23, 2025

    @ssparach
    Contributor

    Thanks for following up!
    When you click the template:

    • Does it fail to load, show an error, or simply not appear for selection?
    • What was the expected behavior, and what actually happened?
    • Which template does this happen for, or is it occurring for any template?
    • Any error messages or codes you saw?

    We appreciate your help in clarifying this!

  4. Gaoyifei1011 commented on Oct 24, 2025

    @Gaoyifei1011
    Author

    Thanks for following up! When you click the template:

    • Does it fail to load, show an error, or simply not appear for selection?
    • What was the expected behavior, and what actually happened?
    • Which template does this happen for, or is it occurring for any template?
    • Any error messages or codes you saw?

    We appreciate your help in clarifying this!

    1. It does not display the WinUI option (that is, the template corresponding to WinUI 3) in the left list.
    2. The WinUI option, that is, the WinUI 3 template, should be displayed, but in fact, it is not shown
    3. It occurs on the WinUI 3 (Windows App SDK) template
    4. No

    May I ask a question? Does WinUI 3 (Windows App SDK) have a convenient switch for UWP (WinRT Xaml) to enable control templates? In UWP (WinRT Xaml), the XAML template can be enabled using <ProjectCapability` Include="Uwp" />

  5. added
    area-WinAppSDK:Templates
    on Nov 5, 2025
  6. added
    Status: Reviewed
    and removed on May 14, 2026
  7. added
    Status: Investigating
    Status: In-Progress
    Status: In PR
    and removed
    Status: Reviewed
    Status: Investigating
    Status: In-Progress
    on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: In PRarea-WinAppSDK:Templates

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions