Conflicting assets with the same target path '_framework/blazor.modules.json' when building 2nd dependency MAUI Blazor class libraries #25999
Labels
area-blazor
Blazor Hybrid / Desktop, BlazorWebView
i/regression
This issue described a confirmed regression on a currently supported version
platform/android 🤖
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
When building a MAUI Blazor class library project (
Microsoft.NET.Sdk.Razor
) like this, I receive this error:MultipleMauiLibs.Lib1
depends on public Nuget packageBlazorMaterialWeb.Bundled
.MultipleMauiLibs.Lib2
depends onMultipleMauiLibs.Lib1
.MultipleMauiLibs.Lib1
only is fine.BlazorMaterialWeb.Bundled
, bothMultipleMauiLibs.Lib1
andMultipleMauiLibs.Lib2
are fine.BlazorMaterialWeb.Bundled
and buildingMultipleMauiLibs.Lib2
, the below error happens.I suspect it has something to do with #15234. I am sure my project could build before, probably with .NET 8.0.402. I tried uninstall my .NET SDK and reinstall it but with the workload installed the latest, I can't find out the version this issue begins (I do not know how to install a previous workload version).
Full error message:
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/datvm/MultipleMauiBlazorLib
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows, macOS, iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: