MAUI Blazor Microsoft.AspNetCore.Components.WebView.Maui Dependency version error
See original GitHub issueDescription
MAUI Blazor Dependency version error
MauiBlazor7RC -> Microsoft.AspNetCore.Components.WebView.Maui 7.0.0-rc.2.6866 -> Microsoft.AspNetCore.Authorization 7.0.0-rc.2.22476.2 -> Microsoft.Extensions.Logging.Abstractions (>= 7.0.0-rc.2.22472.3) MauiBlazor7RC -> Microsoft.Extensions.Logging.Abstractions (>= 7.0.0-rc.2.22430.11) MauiBlazor7RC C:\Users*User*\source\repos\MauiBlazor7RC\MauiBlazor7RC\MauiBlazor7RC.csproj 1
Steps to Reproduce
- Create App -> Use MAUI Blazor Template -> .net 7.0
- Compiler;
- Error.
Link to public reproduction project repository
no
Version with bug
7.0 Release Candidate 2
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Not, Only Compiler.
Did you find any workaround?
NO
Relevant log output
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 NU1605 检测到包降级: Microsoft.Extensions.Logging.Abstractions 从 7.0.0-rc.2.22472.3 降级到 7.0.0-rc.2.22430.11。直接从项目引用包以选择不同版本。
MauiBlazor7RC -> Microsoft.AspNetCore.Components.WebView.Maui 7.0.0-rc.2.6866 -> Microsoft.AspNetCore.Authorization 7.0.0-rc.2.22476.2 -> Microsoft.Extensions.Logging.Abstractions (>= 7.0.0-rc.2.22472.3)
MauiBlazor7RC -> Microsoft.Extensions.Logging.Abstractions (>= 7.0.0-rc.2.22430.11) MauiBlazor7RC C:\Users\Max.Huang\source\repos\MauiBlazor7RC\MauiBlazor7RC\MauiBlazor7RC.csproj 1
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
warning on Microsoft.AspNetCore.Components.WebView. ...
i have a .net maui project and i want to add blazor page in my project when add Microsoft.AspNetCore.Components.WebView.Maui package from ...
Read more >MAUI Dependency error - Microsoft Q&A
Hi, I'm trying to create a new project in MAUI but I get dependency errors. I have VS Community installed and updated with...
Read more >Getting Started with MAUI Blazor App in Visual Studio
This section explains how to create and run the first .NET Multi-platform Blazor App UI (.NET MAUI Blazor) app with Syncfusion Blazor components....
Read more >Blazor Hybrid Web Apps with .NET MAUI
NET code on the platform's runtime using a single process. There's no local or remote Web server and no WebAssembly (WASM) in the...
Read more >Sharing Code with Blazor & .NET MAUI
Shared Blazor components can power UI across web & native apps, thanks to .NET MAUI.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

MAUI has implicit package references to some of these at an older version, so if you’re trying to update nuget packages because the package manager tells you there’s an update, you may see this.
You can force them to update (just as the error indicates) by explicitly setting the version for the conflicting packages.
In this case you could use:
In addition to trying to update the
Microsoft.Extensions.Logging.Debugpackage defined explicitly in the new project.Just add NU1603; in “suppress specific warnings”
then is fix…