Skip to content

[Feature]: Opting out of WindowsAppSDK detection #5450

@GetGet99

Description

@GetGet99

Describe the feature/enhancement you need

I am using WebView2 on WPF and also want to install WindowsAppSDK. WebView2 automatically update the APIs to WinRT version. We would like it not to do that when I am not developing on WinUI 3.

The scenario/use case where you would use this feature

I am using WebView2 on WPF. However, I also want to use WindowsAppSDK for some of the Windowing APIs like AppWindow, as some APIs are easier to work with. We're currently stuck in older version of WindowsAppSDK and WebView2 due to the auto detection. I don't need WinRT version of the WebView2 API.

Current impact to me is that I am stuck with earlier version of both packages when the detection is not there, and use allias.

How important is this request to you?

Impactful. My app's user experience would be significantly compromised without it.

Suggested implementation

Some flags in csproj like possibly <UseWebView2WinRT>false</UseWebView2WinRT>

What does your app do? Is there a pending deadline for this request?

My app is a lightweight progressive web app. We would like the windowing part to be lightweight while presenting user with web app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions