Attempting to resolve dependency 'Transformer.NET (≥ 2.1.1)'. Install-Package : '2.1.1-PREVIEW' is not a valid version string - ext.net

when trying to install like this PM> Install-Package Ext.NET.MVC ,I am getting this error.
error detail:
PM> Install-Package Ext.NET.MVC
Attempting to resolve dependency 'Ext.NET.Utilities (≥ 2.4.0)'.
Attempting to resolve dependency 'Transformer.NET (≥ 2.1.1)'.
Install-Package : '2.1.1-PREVIEW' is not a valid version string.
Parameter name: version
At line:1 char:1
+ Install-Package Ext.NET.MVC
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], ArgumentException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I have already update package manager console.
Package Manager Console Host Version 2.8.50313.31
I am using VS 2012,project I have created mvc 4
*I also tried to install like this but same result: PM> Install-Package Ext.NET.MVC4
UPDATE
after installed transformer,and try to attempt install Mvc4 ,I am getting an error something like this
Install failed. Rolling back...
Install-Package : Failed to add reference to 'Ext.Net'.
At line:1 char:1
+ Install-Package Ext.NET.MVC4
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Sometimes such problems happen if install a new package over an old package. Please try to reinstall first:
Uninstall-Package Ext.NET.MVC
Then install again
Install-Package Ext.NET.MVC

Related

NuGetCmdletUnhandledException seen while trying to install Fluent library in VS

When I'm trying to install the Fluent package using PM in a ASP.NET app of Visual Studio using the command:
Install-Package Microsoft.Azure.Management.Fluent -Version 1.37.1
The following error occurs:
Install-Package : Could not install package 'Microsoft.Azure.Management.Fluent 1.37.1'. You are trying to install this package into a project that targets 'Unsupported,Version=v0.0', but the package does not contain any assembly references or
content files that are compatible with that framework.
At line:1 char:2
+ Install-Package Microsoft.Azure.Management.Fluent -Version 1.37.1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Kindly help in resolving this exception.
You can try to delete the cache packages in
C:\Users\{userName}\.nuget\packages\microsoft.azure.management.fluent
and
.obj folder in project directory.
Then restart visual studio and re-install it in PM.

VS2013 .NET 4.51 nuget -Install CassandraCSharpDriver fails

My goal is to write a C# program to test with Cassandra database.
In VS2013, I've tried .NET 4.51, 4.5, 4.0, and even 3.5. With 4.5 this is the error I get:
PM> Install-Package CassandraCSharpDriver Attempting to resolve
dependency 'lz4net (≥ 1.0.10.93)'. Attempting to resolve dependency
'Microsoft.Extensions.Logging (≥ 1.0.0)'. Attempting to resolve
dependency 'Microsoft.Extensions.Logging.Abstractions (≥ 1.0.0)'.
Installing 'lz4net 1.0.15.93'. Successfully installed 'lz4net
1.0.15.93'. Installing 'Microsoft.Extensions.Logging 1.0.2'. You are downloading Microsoft.Extensions.Logging from
Microsoft.Extensions.Logging, the license agreement to which is
available at
http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm.
Check the package for additional dependencies, which may come with
their own license agreement(s). Your use of the package and
dependencies constitutes your acceptance of their license agreements.
If you do not accept the license agreement(s), then delete the
relevant components from your device. Successfully installed
'Microsoft.Extensions.Logging 1.0.2'. Installing
'Microsoft.Extensions.Logging.Abstractions 1.0.2'. You are downloading
Microsoft.Extensions.Logging.Abstractions from
Microsoft.Extensions.Logging.Abstractions, the license agreement to
which is available at
http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm.
Check the package for additional dependencies, which may come with
their own license agreement(s). Your use of the package and
dependencies constitutes your acceptance of their license agreements.
If you do not accept the license agreement(s), then delete the
relevant components from your device. Successfully installed
'Microsoft.Extensions.Logging.Abstractions 1.0.2'. Installing
'CassandraCSharpDriver 3.2.1'. Successfully installed
'CassandraCSharpDriver 3.2.1'. Adding 'lz4net 1.0.15.93' to
CassandraTester. Successfully added 'lz4net 1.0.15.93' to
CassandraTester. Adding 'Microsoft.Extensions.Logging 1.0.2' to
CassandraTester. Uninstalling 'Microsoft.Extensions.Logging 1.0.2'.
Successfully uninstalled 'Microsoft.Extensions.Logging 1.0.2'.
Uninstalling 'lz4net 1.0.15.93'. Successfully uninstalled 'lz4net
1.0.15.93'. Install failed. Rolling back... Install-Package : Could not install package 'Microsoft.Extensions.Logging 1.0.2'. You are
trying to install this package into a project that targets
'.NETFramework,Version=v4.5', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author. At line:1
char:1
+ Install-Package CassandraCSharpDriver
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM>
So far my get-around has been to go back to a prior version:
Install-Package CassandraCSharpDriver -Version 3.1.0
I found the version history here: https://www.nuget.org/packages/CassandraCSharpDriver
At least it installed now.

Could not install package: Microsoft.AspNet.WebHelpers through Visual Studio

I want install the package:Microsoft.AspNet.WebHelpers throungh VS's package manager console, however met the error as below:
PM> Install-Package Microsoft.AspNet.WebHelpers
Install-Package : Unable to find package 'Microsoft.AspNet.WebHelpers'At line:1 char:1
+ Install-Package Microsoft.AspNet.WebHelpers
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
the same status if I want install it by Nuget, could not find this package.Is anything need I do?
I'm having the same problem since I opened my project in VS 2015.
I think the VS 2015 try to update to a new version, but it's incompatible with the other nugets.
Try on Package Manager Console: PM> Install-Package Microsoft.AspNet.WebHelpers -Version 3.0.0

Unable to Install-Package Microsoft.AspNet.SignalR

I am new to visual studio 2012.I'm trying to install Microsoft.AspNet.SignalR package via Package Manager Console.
PM> Install-Package Microsoft.AspNet.SignalR
but its showing error.
Install-Package : Unable to find package 'Microsoft.AspNet.SignalR'.
At line:1 char:1
+ Install-Package Microsoft.AspNet.SignalR
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package],invalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Can any one know how to solve this problem?

Error installing MVVMCross from nuget into a PCL

When I try to install MvvmCross into a new PCL I receive an error. The console log is below:
Package Manager Console Host Version 2.5.40416.9020
Type 'get-help NuGet' to see all available NuGet commands.
PM> install-package MvvmCross
Attempting to resolve dependency 'MvvmCross.HotTuna.StarterPack (≥ 3.0.6)'.
Attempting to resolve dependency 'MvvmCross.HotTuna.CrossCore (≥ 3.0.6)'.
``Attempting to resolve dependency 'MvvmCross.PortableSupport (≥ 3.0.6)'.
Installing 'MvvmCross.PortableSupport 3.0.6'.
Successfully installed 'MvvmCross.PortableSupport 3.0.6'.
Installing 'MvvmCross.HotTuna.CrossCore 3.0.6'.
Successfully installed 'MvvmCross.HotTuna.CrossCore 3.0.6'.
Installing 'MvvmCross.HotTuna.StarterPack 3.0.6'.
Successfully installed 'MvvmCross.HotTuna.StarterPack 3.0.6'.
Installing 'MvvmCross 3.0.6'.
Successfully installed 'MvvmCross 3.0.6'.
Adding 'MvvmCross.PortableSupport 3.0.6' to Clevermed.Badger.Mobile.Core.
Uninstalling 'MvvmCross.PortableSupport 3.0.6'.
Successfully uninstalled 'MvvmCross.PortableSupport 3.0.6'.
Install failed. Rolling back...
install-package : Specified argument was out of the range of valid values.
Parameter name: supportedFrameworks
At line:1 char:1
+ install-package MvvmCross
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], ArgumentOutOfRangeException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I'm using Profile104 as described in http://slodge.blogspot.com/2013/04/my-current-pcl-setup-in-visual-studio.html
This is a similar but separate error to MvvMCross 3.0.6 Nuget package installation issue
Furthermore, if I right click on the solution and 'Manage NuGet packages' I receive the error 'Specified argument was out of the range of valid values. Parameter name: supportedFrameworks'.
Any ideas how I can debug this further?
I had similar issue while installing MvvMCross 3.0.6 Nuget package. I had raised a similar question MvvMCross 3.0.6 Nuget package installation issue
So I followed Stuarts suggestion and referred the MvvmCross dll's directly in the project which worked like a charm. You can download the MvvMCross code from https://github.com/slodge/MvvmCross.
I'm not sure, but what version of NuGet are you running?
To get the MonoTouch and MonoAndroid support (and some of the Portable support) you will need Nuget 2.5 installed
Just as a side note (and dunno if it's going to fix this): you can check your nuget version in Tools > Extensions and Updates. Here you can view the list of your installed packages, as well as their version.
Also, if you nuget package manager is out of date, it will show up under the 'Updates' category.
... on the other hand, you package manager console says it's version 2.5.something, so I'm guessing you're up to date on that one.
I'm not sure how, but I had an empty Profile104 folder in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETPortable\v4.5\Profile
Probably a left over form my first attempts.
Removing this empty directory allowed the installation to complete without error.
Not sure, but could there be an issue with the NuGet package MvvmCross.PortableSupport ?
Click the image to see it in full resolution...
Also check the NuGet docs for details on the supported Target Framework variables: http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package#Matching_Assembly_Version_to_the_Target_Framework_of_a_Project

Resources