Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MahApps.Metro v2.4.8 uses wrong version range for ControlzEx dependency #4194

Closed
punker76 opened this issue Oct 15, 2021 Discussed in #4193 · 7 comments
Closed

MahApps.Metro v2.4.8 uses wrong version range for ControlzEx dependency #4194

punker76 opened this issue Oct 15, 2021 Discussed in #4193 · 7 comments
Labels
Milestone

Comments

@punker76
Copy link
Member

Discussed in #4193

Originally posted by pkMoser October 14, 2021
I would like to update MahApps.Metro v2.4.8 via NuGet package, but I got this error:
"Unable to resolve dependencies. 'ControlzEx 5.0.1' is not compatible with 'MahApps.Metro 2.4.8 constraint: ControlzEx (>= 4.4.0 && < 5.0.0)'"
Is it possible to change this constraint?
Thank you for your response.

@punker76 punker76 added the Bug label Oct 15, 2021
@punker76 punker76 added this to the 2.4.9 milestone Oct 15, 2021
@punker76 punker76 changed the title MahApps.Metro v2.4.8 uses wrongversion range for ControlzEx dependency MahApps.Metro v2.4.8 uses wrong version range for ControlzEx dependency Oct 15, 2021
@gabriel-vanca
Copy link

This problem occurs again now.
I'm getting: Unable to resolve dependencies. 'ControlzEx 6.0.0' is not compatible with 'MahApps.Metro 2.4.10 constraint: ControlzEx (>= 4.4.0 && < 6.0.0)'.

@punker76
Copy link
Member Author

punker76 commented Sep 4, 2024

@gabriel-vanca Is there perhaps another package that has a higher dependency on ControlzEx?

@gabriel-vanca
Copy link

I doubt that's the problem. I've tried with -IgnoreDependencies too. Still getting this error:

One or more unresolved package dependency constraints detected in the existing packages.config file. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'MahApps.Metro 2.4.10 constraint: ControlzEx (>= 4.4.0 && < 6.0.0)'
Update-Package : Unable to resolve dependencies. 'ControlzEx 6.0.0' is not compatible with 'MahApps.Metro 2.4.10 constraint: ControlzEx (>= 4.4.0 && < 6.0.0)'.
At line:1 char:1
+ Update-Package -IgnoreDependencies -IncludePrerelease -ToHighestPatch ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand

@Ntiwari03
Copy link

Ntiwari03 commented Sep 12, 2024

This change #4193 was submitted in Oct 2021 with MahApps.Metro/2.4.9 which has dependency constraint.
https://www.nuget.org/packages/MahApps.Metro/2.4.9

MahApps.Metro/2.4.10 was released on 7/6/2023

ControlzEx/6.0.0 was released on 5/7/2023 i.e. prior to MahApps.Metro/2.4.10.
https://www.nuget.org/packages/ControlzEx/6.0.0

Ideally, this constraint must have been modified in MahApps.Metro/2.4.10. Probably, we need another version of MahApps.Metro/2.4.11 with this fix.

constraint:
ControlzEx (>= 4.4.0 && < 6.0.0)' be modified to => ControlzEx (>= 4.4.0 && <= 6.0.0)'

FYI, I get below error on installing 'ControlzEx 6.0.0'.
Install-Package : Unable to resolve dependencies. 'ControlzEx 6.0.0' is not compatible with 'MahApps.Metro 2.4.10 constraint: ControlzEx (>= 4.4.0 && < 6.0.0)'.

@punker76
Copy link
Member Author

@Ntiwari03 ControzlEx v6 is not compatible to MahApps v2.4.x. So if you have ControlzEx v6 installed, then you can only use MahApps v3 pre-alpha.

@Ntiwari03
Copy link

@punker76 Please let me know latest stable compatible versions of ControzlEx and MahApps.

@timunie
Copy link
Collaborator

timunie commented Sep 13, 2024

@Ntiwari03

Install-Package : Unable to resolve dependencies. 'ControlzEx 6.0.0' is not compatible with 'MahApps.Metro 2.4.10 constraint: ControlzEx (>= 4.4.0 && < 6.0.0)'.

this message means the version must be bigger than 4.4.0 and must be smaller than 6.0.0. ► So any package with version 5.. should be fine.

gabriel-vanca added a commit to gabriel-vanca/RepoM that referenced this issue Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants