How to upgrade NuGet package lucene-net from version 3.0.3 to version 4.8.0 - upgrade

I am using lucene-net version 3.0.3, and I want binary filed store. Binary filed requires lucene-net version 4, but I cannot install this version.
This is what I have tried and the error I received:
PM> Install-Package Lucene.Net -Version 4.8.0.648-beta
Install-Package:
Some NuGet packages are missing from the solution. The packages need
to be restored in order to build the dependency graph. Restore the
packages before performing any operations.
At line:1 char:1
+ Install-Package Lucene.Net -Version 4.8.0.648-beta
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetMissingPackages,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

As said in this blogpost of Itamar Syn-Hershko, Lucene.NET version 4.8 is not yet available with NuGet.
But as described, you can get it through the private feed of MyGet though. To do this, first add a new package source in the NuGet Package Manager settings, with Source: https://www.myget.org/F/lucene-net/.
After you've done this, you should find the new version with the NuGet Package Manager (don't forget to set the correct Package source).

Related

How can I force Caliburn.Micro.Xamarin.Forms to use a specific version of Xamarin.Forms?

I'm trying to add the Caliburn.Micro 3.0alpha NuGet package to an existing Xamarin.Forms project. I first seems adding the package via NuGet is successful, but at the end it rolls back, and I get the error message that a newer package of Xamarin.Forms is already installed.
How can I force Caliburn.Micro to ignore this error and use the installed version of Xamarin.Forms ?
My NuGet output :
PM> Install-Package Caliburn.Micro.Xamarin.Forms -Pre
Attempting to resolve dependency 'Caliburn.Micro.Core (= 3.0.0-alpha)'.
Attempting to resolve dependency 'Xamarin.Forms (= 1.4.2.6355)'.
Installing 'Caliburn.Micro.Core 3.0.0-alpha'.
Successfully installed 'Caliburn.Micro.Core 3.0.0-alpha'.
Installing 'Xamarin.Forms 1.4.2.6355'.
Successfully installed 'Xamarin.Forms 1.4.2.6355'.
Installing 'Caliburn.Micro.Xamarin.Forms 3.0.0-alpha'.
Successfully installed 'Caliburn.Micro.Xamarin.Forms 3.0.0-alpha'.
Install failed. Rolling back...
Install-Package : Already referencing a newer version of 'Xamarin.Forms'.At line:1 char:2
+ Install-Package Caliburn.Micro.Xamarin.Forms -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
You cannot force Caliburn.Micro.Core 3.0.0-alpha to use any other version of Xamarin.Forms other than 1.4.2.6355.
The Caliburn.Micro.Core 3.0.0-alpha NuGet package has a dependency which restricts to a single Xamarin.Forms version.
<dependency id="Xamarin.Forms" version="[1.4.2.6355]" />
The only workarounds are:
Modify the Caliburn.Micro.Core NuGet package to relax the dependency.
Do not use NuGet.
Caliburn.Micro.Core might not work with a different version of Xamarin.Forms even if the above workarounds are tried.

How to install MVVMLight through nuget

I need to add MVVM Light toolkit to an existing project.
I run nuget command.. My project is in 4.5 Framework. I got this error
Attempting to resolve dependency 'MvvmLightLibs (≥ 5.0.2.0)'.
Install-Package : 'MvvmLightLibs' already has a dependency defined for 'CommonServiceLocator'.
At line:1 char:16
+ Install-Package <<<< MvvmLight
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPa
ckageCommand
I installed through extensions and updates and it got installed but when i tried to create a new mvvm project using visual studion wizard same this dependency error arises.
How to resolve this..
Install the latest version of NuGet
i agrees with Sievajet. solved the same problem by upgrading to the latest version of NuGet

Unable to upgrade to Ef 6.0. Unable to find a version of 'Breeze.Server.WebApi.EF' that is compatible

I'm issuing this command in the Package Manager Console..
PM> install-package EntityFramework -version 6.0.0
and it is giving me the error that it cannot find a version of the Breeze.Server.WebApi.EF package that is compatible (Shown at bottom). Here are the breeze packages I currently have installed:
Does anyone know what might be happening here?
Full error...
Install-Package : Updating 'EntityFramework 5.0.0' to 'EntityFramework 6.0.0' failed. Unable to find a version o
f 'Breeze.Server.WebApi.EF' that is compatible with 'EntityFramework 6.0.0'.
At line:1 char:16
+ install-package <<<< EntityFramework -version 6.0.0
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Breeze.Server.WebApi.EF has a requirement of EF < 6.0. You'll need to remove that and use the new packages listed in the Nuget Documentation.
ie. Remove Breeze.WebApi and add Breeze.WebApi2

PDFsharp-MigraDoc-WPF nuget package

I am looking for the PDFsharp-MigraDoc-WPF Nuget package. The pdfsharp site indicates that the package exists, but it is not present in the Nuget Gallery: only a GDI package is there. An attempt to Install-Package by name failed.
PM> Install-Package PDFsharp-MigraDoc-WPF
Install-Package : Unable to find package 'PDFsharp-MigraDoc-WPF'.
At line:1 char:1
+ Install-Package PDFsharp-MigraDoc-WPF
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Is there a configuration change that I need to make (e.g. pointing to another nuget server from the company that publishes PDFsharp-MigraDoc-WPF) in order to get the package?
The PDFsharp site indicates that the NuGet package with the WPF version was not published yet.
For the WPF version you can use the source code package (reference the projects in VS) or get the DLL package.

NuGet error "External packages cannot depend on packages that target projects" when installing SNAP 1.4

I get the following error when trying to install SNAP 1.4 into a fresh VS2010-project using Nuget 1.3:
"External packages cannot depend on packages that target projects"
Is this a problem with the SNAP Nuget package, or am I doing anything wrong?
PM> Install-Package SNAP
'Castle.Core (≥ 2.5.2)' not installed. Attempting to retrieve dependency from source...
Done.
Install-Package : External packages cannot depend on packages that target projects.
At line:1 char:16
+ Install-Package <<<< SNAP
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Reading this issue here:
http://nuget.codeplex.com/workitem/595
It sounds like it happens if a project that doesn't have any Content relies on one that does. Not sure whether this always fails, or just when there isn't a "current project". I do remember seeing a "Default Project" dropdown in the Package Manager Console, so not really sure why this wouldn't work.
Can you try installing it through the UI? (right-click the references folder of the project, then do Add Library Package (or similar)). Also check you have a project selected in the Solution Explorer and/or the Default Package in the console window.
That's no longer the case. SNAP package can be successfully installed into a project. My environment is VS 2012 + NuGet 2.7.