Skip to content

Referencing WebView2.Runtime adds dependency to Microsoft.VCLibs.140.00 and Microsoft.VCLibs.140.00.UWPDesktop #14

Description

@lfderm

When the WebView2.Runtime package is added to WinUI a project, then the following dependencies are added to the project's publish output appx package:

    <PackageDependency Name="Microsoft.VCLibs.140.00" MinVersion="14.0.33519.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"/>
    <PackageDependency Name="Microsoft.VCLibs.140.00.UWPDesktop" MinVersion="14.0.33728.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"/>

We intended to add WebView2 Runtime to allow a self-contained deployment without any dependencies. Now we get two new dependencies added, which we would need to manually install on target machines. Newer Windows builds happen to include them already, but older ones (e.g. 22H2) do not have them and need manual installation.

Are these really needed? WinUI 3 does not need them anymore due to Hybrid CRT. They are still added by default, but they are unnecessary and can be removed by a property switch. Can you check if they are really still needed for WebView2? Maybe they can be removed here as well?

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions