Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget: no compatible package found in active solution for MvvmCross.CrossCore

I am trying to install MvvmCross.HotTuna.CrossCore 3.0.14 into a WindowsPhone 8.0 class library from the NuGet command line. Error I get when attempting to do this is:

PM> install-package MvvmCross.HotTuna.CrossCore 3.0.14
install-package : No compatible project(s) found in the active solution.
At line:1 char:1
+ install-package MvvmCross.HotTuna.CrossCore 3.0.14
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetNoCompatibleProjects,NuGet.PowerShell.Commands.InstallPackageCommand

In this solution, I have another a Windows Phone 8 application project (Target Windows Phone OS Version is set to Windows Phone OS 8.0) that has the following MvvmCross packages installed. This was done earlier without any problems:

<packages>
  <package id="MvvmCross.HotTuna.CrossCore" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.HotTuna.MvvmCrossLibraries" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.HotTuna.Plugin.File" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.HotTuna.Plugin.Json" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.HotTuna.Plugin.Location" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.HotTuna.Plugin.Messenger" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.HotTuna.Plugin.Sqlite" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.HotTuna.Plugin.Visibility" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.HotTuna.StarterPack" version="3.0.14" targetFramework="wp71" />
  <package id="MvvmCross.PortableSupport" version="3.0.14" targetFramework="wp71" />
  <package id="WPtoolkit" version="4.2013.08.16" targetFramework="wp80" />
</packages>

Anyone run into a similar problem?

like image 665
Klaus Nji Avatar asked May 23 '14 15:05

Klaus Nji


1 Answers

I just had a similar issue and I'd missed a - from the command. It seems like you might have done something similar.

I was trying install-package Microsoft.AspNet.WebApi.WebHost version 5.1.2

And I resolved it by doing

install-package Microsoft.AspNet.WebApi -version 5.1.2 -project GRP2App.Web

Note, I'd missed the - from the version parameter. I also added the project parameter but I don't think it was important.

Your command install-package MvvmCross.HotTuna.CrossCore 3.0.14 doesn't have -version before the version number.

like image 108
BenCr Avatar answered Oct 31 '22 06:10

BenCr