Problem with Visual Studio 2022 for Mac and Nuget update for Microsoft.Extensions.Logging library

Stephen Hutchinson 0 Reputation points
2024-01-30T11:37:18.63+00:00

When creating a brand new .NET Maui project in Visual Studio 2022 for Mac everything seems to work ok. Building the 'click me' app works and runs on the Android and iPhone emulators. What is strange however is that the default project explorer view shows '1 update' necessary for the Nuget Packages for all three frameworks ( net7.0-android, net7.0-ios and .net7.0-maccatalyst ) However Nuget will NOT allow the update for the following reason ... "Detected package downgrade: Microsoft.Extensions.Logging from 8.0.0 to 7.0.0. Reference the package directly from the project to select a different version. MauiTestApp -> Microsoft.Extensions.Logging.Debug 8.0.0 -> Microsoft.Extensions.Logging (>= 8.0.0) MauiTestApp -> Microsoft.Extensions.Logging (>= 7.0.0)" Shouldn't a sample Visual Studio project work without these problems? Why is this Microsoft.Extensions.Logging not allowing an upgrade and should I just ignore these updates as not necessary?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,753 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,046 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
185 questions
{count} votes