Skip to content

"Could not copy the file HybridWebView.js" when upgrading to 1.8.251106002 #6032

@JochemPalmsens

Description

@JochemPalmsens

Describe the bug

We're trying to upgrade from 1.7.251107005 to 1.8.251106002 and weird build fail

Could not copy the file "C:\Users\Jochem.nuget\packages\microsoft.maui.controls.core\9.0.120\lib\net9.0-windows10.0.19041\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found.

In the project it throws from the packages used are:

    <PackageReference Include="CommunityToolkit.WinUI.UI.Controls" Version="7.1.2" />
    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.251106002" />
    <PackageReference Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop" Version="9.0.120" />

Is this a known issue?

I've tried cleaning the nuget cache (and cleaning eveything) and retry, but that doesn't help

Steps to reproduce the bug

All I did was change

    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.251107005" />

to

    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.251106002" />

cleaned the output directories and rebuild

Expected behavior

I would expect that I have to change some stuff, but not a build failure on a Microsoft dependency.

Screenshots

No response

NuGet package version

Windows App SDK 1.8.3: 1.8.251106002

Packaging type

No response

Windows version

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

IDE

Visual Studio 2022, Other

Additional context

When building the xUnit v3 Test for the project, I get this popup:

Image

I never had to do this before? I this a breaking change I missed?
How does this impact distribution? Do we need to ship an installer for WinAppSDK 1.8 runtimes now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-PackagingTopics related to packaging behavior of Windows App SDKneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions