question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MAUI Blazor Microsoft.AspNetCore.Components.WebView.Maui Dependency version error

See original GitHub issue

Description

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

  1. Create App -> Use MAUI Blazor Template -> .net 7.0
  2. Compiler;
  3. 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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Redthcommented, Oct 19, 2022

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:

<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0-rc.2.22472.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0-rc.2.22472.3" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0-rc.2.22472.3" />

In addition to trying to update the Microsoft.Extensions.Logging.Debug package defined explicitly in the new project.

0reactions
PirasathLuxchumykanthancommented, Oct 26, 2022

Just add NU1603; in “suppress specific warnings”

then is fix…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found