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

Invalid "Unable to find a version that is compatible" error #2325

Closed
technicallyerik opened this issue Mar 15, 2016 · 4 comments
Closed

Invalid "Unable to find a version that is compatible" error #2325

technicallyerik opened this issue Mar 15, 2016 · 4 comments
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Update The update package feature/command/experience Resolution:Duplicate This issue appears to be a Duplicate of another issue
Milestone

Comments

@technicallyerik
Copy link

I am attempting to install the "UmbracoCms.6.2.5" package into a new project in Visual Studio 2015 with NuGet 3.3.0.167, and get this error:

Attempting to resolve dependencies for package 'UmbracoCms.6.2.5' with DependencyBehavior 'Lowest'
Unable to find a version of 'Lucene.Net' that is compatible with 'Examine 0.1.67 constraint: Lucene.Net (≥ 2.9.4.1)', 'UmbracoCms.Core 6.2.5 constraint: Lucene.Net (≥ 2.9.4.1 && < 3.0.0)'

Shouldn't this package meet both of the dependency requirements? https://www.nuget.org/packages/Lucene.Net/2.9.4.1

What am I missing here?

@technicallyerik
Copy link
Author

After manually looking through the dependency tree myself, it turns out the error was completely wrong in describing the issue.

What it should have said was:

Currently installed Mvc 5.2.3 incompatible with Umbraco.Core constraint of Microsoft.AspNet.Mvc (>= 4.0.30506 && < 5.0.0)

@yishaigalatzer
Copy link

Thanks @technicallyerik - can you share your repro project and we will make the error better?

@yishaigalatzer yishaigalatzer added Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Update The update package feature/command/experience labels Mar 15, 2016
@yishaigalatzer yishaigalatzer added this to the 3.5 Beta milestone Mar 15, 2016
@technicallyerik
Copy link
Author

Unfortunately this is a private repository, but the steps to reproduce are fairly easy. This was a new project.

  1. File -> New Project
  2. Select "ASP.NET Web Application"
  3. Check the box to include MVC dependencies (which will bring in MVC 5)
  4. Install-Package UmbracoCms -Version 6.2.5

@emgarten
Copy link
Member

This is a dupe of #1373

The resolve error messages are sometimes incorrect when the project starts out in a broken state, it sounds like this is what you hit.

@rrelyea rrelyea added the Resolution:Duplicate This issue appears to be a Duplicate of another issue label May 11, 2016
@rrelyea rrelyea modified the milestones: Future, 3.5 Beta May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Functionality:Update The update package feature/command/experience Resolution:Duplicate This issue appears to be a Duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants