WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

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

Open JochemPalmsens opened this issue 1 month ago • 3 comments

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?

JochemPalmsens avatar Nov 24 '25 09:11 JochemPalmsens

I've just tried other versions... it seems all v1.8 versions fail. I cannot find anything about breaking changes on the release page. What did I miss?

JochemPalmsens avatar Nov 24 '25 09:11 JochemPalmsens

Can repro your issue with Version="1.8.251106002".

mfkl avatar Dec 02 '25 07:12 mfkl

Related/Cause: https://github.com/dotnet/maui/issues/32683

JochemPalmsens avatar Dec 02 '25 08:12 JochemPalmsens