Skip to content

Using the WindowsAppSdk for packaging in a single project wpf app with Blazor Hybrid doesn't compile #5956

@EddyHaigh

Description

@EddyHaigh

Describe the bug

If you add the WindowsAppSdk.Runtime for the packaging of a single project WPF app this works and produces an msix. However, adding Blazor Hybrid to solution seems to confuse Webview 2 and the components for Blazor Hybrid suddenly become unavailable.

Steps to reproduce the bug

  1. Setup a WPF single project msix app
  2. Add Blazor Hybrid (v9+)

Expected behavior

The app should build an MSIX.

Screenshots

No response

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

Other, Visual Studio 2022

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions