Issues trying to install SignalR - nuget

Im having trouble trying to install the SignalR package, I use the command
PM> Install-Package Microsoft.AspNet.SignalR
but I get an error saying:
Unable to find package 'Microsoft.AspNet.SignalR'
Error that appears
I have tried to use the nuget package manager as apposed to the console but it says it cannot find any results for 'Microsoft.AspNet.SignalR
Please help..

Related

Why can't I install Microsoft.EntityFrameworkCore.Sqlite?

I am following this tutorial:
https://learn.microsoft.com/en-us/ef/core/get-started/overview/first-app?tabs=visual-studio
I am immediately stopped because I can not complete the following command:
Install-Package Microsoft.EntityFrameworkCore.Sqlite
This is the error:
Could not install package 'Microsoft.EntityFrameworkCore.Sqlite.Core 7.0.0'. You are trying to install a package into a project that targets '.NETFramework,Version=v4.7.2', 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.
I am attempting to learn how to use the Entity Framework and so I don't know much regarding this. Any advice would be helpful even if it's a link to something I need to read.
About the tutorial
The tutorial is about .netCore but in the error message you can see that you created a .netFramework project '.NETFramework,Version=v4.7.2'.
Create a new console application, but don't select projects that have (.NET Framework) in the description.
About the Sqlite package (only if continue the practicing with .netFramework)
The command Install-Package Microsoft.EntityFrameworkCore.Sqlite will try to install the last version. Currently, the last version is 7.0.0. This version only work with .NET 6.0.
You can check existing .net versions right here
So, you need to specify the version. The version for .NET 4.7.2 is the 3.1.31.
Install-Package Microsoft.EntityFrameworkCore.Sqlite -Version 3.1.31
Nuget Sqlite package info here

Error NuGet package google translation API

I'm trying to install the Google.Cloud.Translation.V2 package from NuGet and I keep getting this error
Failed to retrieve information about 'Google.Cloud.Translation.V2' from remote source 'https://api.nuget.org/v3-flatcontainer/google.cloud.translation.v2/index.json'.
An error occurred while sending the request.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 72.21.81.200:443
Thanks
If you're using the library's version in your command like this:
Install-Package Google.Cloud.Translation.V2 -Version 1.1.0
or:
dotnet add package Google.Cloud.Translation.V2 --version 1.1.0
or:
paket add Google.Cloud.Translation.V2 --version 1.1.0
Then, a firewall may be blocking you. If you're using any of those commands and the error persists, then this is not a coding issue, this issue could be checked on ServerFault for a possible firewall blocking you or any other network issue.

UmbracoCms installation error

I'm getting this error when I try to run the following line:
Install-Package UmbracoCms
And I'm getting this error:
Install-Package : An error occurred while downloading package 'Newtonsoft.Json.10.0.2 : ' from source 'https://www.nuget.org/api/v2/'
I have tried to do the following:
Install-Package Newtonsoft.Json -Version 10.0.2
And I still got this error:
Package 'Newtonsoft.Json.10.0.2 : ' does not exist in project 'Umbraco_MVC'
I also tried to delete the line with Newtonsoft in packages.config, but there is no line with that reference there
If I'm reading this correctly, and you're having an issue with getting JSON.NET installed through NuGet through both methods, then this (loosely related) GitHub issue thread might be of use to you.
https://github.com/google/google-api-dotnet-client/issues/1041
It involves changing the NuGet API URL you use to a newer version.
If your installation IS working, but you're still getting an issue, check your website bin folder to see if the dll is there. If not, check the References section of your web project to see if the dll is being referenced by your project.

'AutoMapper' already has a dependency defined for 'Microsoft.CSharp'

When I am trying to install 'AutoMapper' it gives me an error "'AutoMapper' already has a dependency defined for 'Microsoft.CSharp'" in VS2010.I am trying to install Automapper latest version AutoMapper.6.1.0. I have already tried the following things but it's not worked for me.
1) Updated Nuget Package manager with latest version 2.8.60318.667
2) I have also manually deleted refernece from Automapper nuspec XML file
Please any one suggest me what can be issue for this.
After installing an older version of the Automapper its work for me. try to use Install-Package Automapper -Version 4.0.4 command from package manager console.

Unable to Use Nuget with MvvmCross - PCL

Following the tutorial for mvvmcross here: http://www.youtube.com/watch?v=_DHDMNB_IeY&list=PLR6WI6W1JdeYSXLbm58jwAKYT7RQR31-W&index=1
I've set up my PCL xml files to include MonoTouch and Mono for Android as instructed here: http://slodge.blogspot.co.uk/2013/04/my-current-pcl-setup-in-visual-studio.html
If I try to use nuget I get an error that an item with the same key has already been added:
I can add other project types to the solution and NuGet works fine, it's something specific to PCL projects. Here is the console output:
PM> Install-Package MvvmCross.HotTuna.StarterPack
Attempting to resolve dependency 'MvvmCross.HotTuna.CrossCore (≥ 3.0.8.1)'.
Attempting to resolve dependency 'MvvmCross.PortableSupport (≥ 3.0.8.1)'.
Installing 'MvvmCross.PortableSupport 3.0.8.1'.
Successfully installed 'MvvmCross.PortableSupport 3.0.8.1'.
Installing 'MvvmCross.HotTuna.CrossCore 3.0.8.1'.
Successfully installed 'MvvmCross.HotTuna.CrossCore 3.0.8.1'.
Installing 'MvvmCross.HotTuna.StarterPack 3.0.8.1'.
Successfully installed 'MvvmCross.HotTuna.StarterPack 3.0.8.1'.
Adding 'MvvmCross.PortableSupport 3.0.8.1' to BLUBCNMOBL.Core.
Uninstalling 'MvvmCross.PortableSupport 3.0.8.1'.
Successfully uninstalled 'MvvmCross.PortableSupport 3.0.8.1'.
Install failed. Rolling back...
Install-Package : An item with the same key has already been added.
At line:1 char:1
Microsoft Visual Studio Premium 2012 (Version 11.0.60315.01 Update 2)
Nuget v 2.5
My guess is that one of the XML files you added git snafu'd during copy and paste.
Try deleting whatever you added and try adding them again.
Alternatively, it could be that someone else has added conflicting files? Eg xamarin have recently added pcl support so maybe they've added files?
To try collecting more info, you could try using the nuget command line - does that give you any more diagnostic info.