Skip to content

[Bug] .NET 10 Issue for Maui Blazor Hybrid #5582

@Arslan007

Description

@Arslan007

Library version used

4.79.1

.NET version

.NET 10 Maui Blazor Hybrid

Scenario

PublicClient - desktop app

Is this a new or an existing app?

The app is in production, and I have upgraded to a new version of MSAL

Issue description and reproduction steps

Updated the MAUI Blazor Hybrid App to .NET 10

using this package for Desktop

Microsoft.Identity.Client.Desktop.WinUI3

but this is giving error on compile time

##[error]C:\hostedtoolcache\windows\dotnet\sdk\10.0.100\Microsoft.Common.CurrentVersion.targets(5381,5): Error MSB3030: Could not copy the file "C:\Users\VssAdministrator\.nuget\packages\microsoft.maui.controls.compatibility\10.0.10\lib\net10.0-windows10.0.20348\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found.
C:\hostedtoolcache\windows\dotnet\sdk\10.0.100\Microsoft.Common.CurrentVersion.targets(5381,5): error MSB3030: Could not copy the file "C:\Users\VssAdministrator\.nuget\packages\microsoft.maui.controls.compatibility\10.0.10\lib\net10.0-windows10.0.20348\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found. [D:\a\1\s\src\client\IRISNDT.MTFS.Technician.Client.App\IRISNDT.MTFS.Technician.Client.App.csproj::TargetFramework=net10.0-windows10.0.22621.0]
##[error]C:\hostedtoolcache\windows\dotnet\sdk\10.0.100\Microsoft.Common.CurrentVersion.targets(5381,5): Error MSB3030: Could not copy the file "C:\Users\VssAdministrator\.nuget\packages\microsoft.maui.controls.core\10.0.10\lib\net10.0-windows10.0.20348\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found.
C:\hostedtoolcache\windows\dotnet\sdk\10.0.100\Microsoft.Common.CurrentVersion.targets(5381,5): error MSB3030: Could not copy the file "C:\Users\VssAdministrator\.nuget\packages\microsoft.maui.controls.core\10.0.10\lib\net10.0-windows10.0.20348\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found. [D:\a\1\s\src\client\IRISNDT.MTFS.Technician.Client.App\IRISNDT.MTFS.Technician.Client.App.csproj::TargetFramework=net10.0-windows10.0.22621.0]
##[error]C:\hostedtoolcache\windows\dotnet\sdk\10.0.100\Microsoft.Common.CurrentVersion.targets(5381,5): Error MSB3030: Could not copy the file "C:\Users\VssAdministrator\.nuget\packages\microsoft.maui.core\10.0.10\lib\net10.0-windows10.0.20348\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found.
C:\hostedtoolcache\windows\dotnet\sdk\10.0.100\Microsoft.Common.CurrentVersion.targets(5381,5): error MSB3030: Could not copy the file "C:\Users\VssAdministrator\.nuget\packages\microsoft.maui.core\10.0.10\lib\net10.0-windows10.0.20348\Microsoft.Maui\Handlers\HybridWebView\HybridWebView.js" because it was not found. [D:\a\1\s\src\client\IRISNDT.MTFS.Technician.Client.App\IRISNDT.MTFS.Technician.Client.App.csproj::TargetFramework=net10.0-windows10.0.22621.0]

Relevant code snippets

Expected behavior

No response

Identity provider

Azure B2C Basic Policy

Regression

No response

Solution and workarounds

No response

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