Skip to content

[.Net 10] [Windows] Build failure when using Identity.Client.Desktop.WinUI3 nuget #32683

@DevDachi

Description

@DevDachi

Description

Referencing Microsoft.Identity.Client.Desktop.WinUI3 in a project with .net10 target results in build error

Could not copy the file ".nuget\packages\microsoft.maui.controls.core\10.0.10\lib\net10.0-windows10.0.19041\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js"

Steps to Reproduce

  1. Create a new maui project targeting .Net 10
  2. Add following nuget packages references.
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0-windows10.0.19041.0'">
  <PackageReference Include="Microsoft.Identity.Client" Version="4.79.1" />
  <PackageReference Include="Microsoft.Identity.Client.Desktop.WinUI3" Version="4.79.1"/>
</ItemGroup>
  1. Build the project.

Expected: Build successful.
Actual: Following errors

C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\arm64\Microsoft.Common.CurrentVersion.targets(5381,5): error MSB3030: Could not copy the file "C:\Users\***\.nuget\packages\microsoft.maui.controls.core\10.0.10\lib\net10.0-windows10.0.19041\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found.
C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\arm64\Microsoft.Common.CurrentVersion.targets(5381,5): error MSB3030: Could not copy the file "C:\Users\***\.nuget\packages\microsoft.maui.core\10.0.10\lib\net10.0-windows10.0.19041\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found.

Link to public reproduction project repository

No response

Version with bug

10.0.10

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.120 SR12

Affected platforms

Windows

Affected platform versions

Windows 19041

Did you find any workaround?

None.

Relevant log output

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions