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.

[Bug] Error in installing the package via NuGet

See original GitHub issue

Description

When trying to install the toolkit using NuGet, I get the NU1605 exception and the package installation fails.

Stack Trace

Error	NU1605	Detected package downgrade: Microsoft.Maui.Dependencies from 6.0.300-rc.3.5667 to 6.0.300-rc.2.5513. Reference the package directly from the project to select a different version. 
 istanbul-bridge-conference-maui -> CommunityToolkit.Maui 1.0.0-rc3 -> Microsoft.Maui.Dependencies (>= 6.0.300-rc.3.5667) 
 istanbul-bridge-conference-maui -> Microsoft.Maui.Dependencies (>= 6.0.300-rc.2.5513)	<project>.csproj	

Error	NU1605	Detected package downgrade: Microsoft.Maui.Extensions from 6.0.300-rc.3.5667 to 6.0.300-rc.2.5513. Reference the package directly from the project to select a different version. 
 istanbul-bridge-conference-maui -> CommunityToolkit.Maui 1.0.0-rc3 -> Microsoft.Maui.Extensions (>= 6.0.300-rc.3.5667) 
 istanbul-bridge-conference-maui -> Microsoft.Maui.Extensions (>= 6.0.300-rc.2.5513)	<project>.csproj	


Steps to Reproduce

  1. Tools>Nuget Package Manager>Manage NugetPackages for Solution
  2. Try to intall Community.Toolkit.Maui

Expected Behavior

Community toolkit to be installed.

Actual Behavior

Community toolkit failed to install.

Basic Information

  • Version with issue: 1.0.0-rc3
  • Last known good version: -
  • IDE: VS Community Preview Version 17.2.0 Preview 6.0
  • Platform Target Frameworks:
    • iOS: 15.4
  • Nuget Packages:
  • Microsoft.Graphics.Win2D 1.0.1
  • Microsoft.Maui.Dependencies 6.0.300-rc.2.5513
  • Microsoft.Maui.Extensions 6.0.300-rc.2.5513
  • Microsoft.Toolkit.Mvvm 7.1.2
  • Microsopft.Windows.SDK.BuildTools 10.0.22000.194
  • Microsoft.WindowsAppSDK 1.0.3
  • System.Runtime.InteropServices.NFloat.Internal 6.0.1

Workaround

None

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bijingtoncommented, May 13, 2022

@mcanyucel I noticed you closed this issue down but for reference a .NET MAUI application will show those packages (Microsoft.Maui.Dependencies and Microsoft.Maui.Extensions) as dependencies but are not included in the csproj file as your original post showed. These dependencies are managed instead through this line in your csproj file:

<UseMaui>true</UseMaui>
1reaction
bijingtoncommented, May 12, 2022

And thank you for providing the information requested it really helps us 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

I get NuGet error when trying to install any package
Install-Package : Unable to find package 'PackageName' at source ''. I tried both Visual Studio 2013 and Visual Studio 2019. When I go...
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
This article focuses on common errors when restoring packages and steps to resolve them. Package Restore tries to install all package ...
Read more >
Can't install any nuget package in VS 2019 v16.6.0
workaround 1: My workaround is to manually type "install-package packageName" in the package manager console within Visual Studio. workaround 2: ...
Read more >
nuget install fails with misleading error "Could not find a ...
This issue's scope. I am focusing this issue to a nuget bug where the developer using nuget doesn't always get the over 260...
Read more >
Unable to resolve dependencies of NuGet packages
Clear the NuGet cache files. You do this in the following way: In the toolbar of Visual Studio, navigate to Tools » NuGet...
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