[Bug] Error in installing the package via NuGet
See original GitHub issueDescription
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
- Tools>Nuget Package Manager>Manage NugetPackages for Solution
- 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:
- Created a year ago
- Comments:8 (3 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@mcanyucel I noticed you closed this issue down but for reference a .NET MAUI application will show those packages (
Microsoft.Maui.Dependencies
andMicrosoft.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:And thank you for providing the information requested it really helps us 🙂