Install-Package : Unable to find package 'JSNLog' - visual-studio-2010

I am trying to install JSNLog through Package Manager Console in Visual Studio 2010 as per the instructions given in http://www.jsnlog.com/Documentation/DownloadInstall but I am getting installation error...as below.
I am wondering that has something changed with the command ?? and also how can we restore the missing NuGet packages from the project solution -- I updated the NuGet version
Environment I have is
Visual Studio 2010 Professional and NuGet from https://www.nuget.org/api/v2/
Main Purpose of using JSNLog is to implement client side Logging in my project...
Any thoughts pelase...

Related

Xamarin.Forms not working in Visual Studio for Mac

I am working on a Xamarin.Forms app in Visual Studio using Visual Studio Online Team Explorer. But whenever I try to build my main project or iOS project I get the following error:
/Users/test/Visual Studio/workspace/MyProject.iOS/MyProject.iOS.csproj(5,5): Error: This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ../../packages/Xamarin.Forms.2.5.1.444934/build/netstandard1.0/Xamarin.Forms.props. (MyProject.iOS)
I tired looking for the NuGet store but couldn't find it on the mac version. It is already installed on my windows laptop that also uses it.
In Visual Studio for Mac, you can manipulate your packages using the Project menu. In your case, you'll want to use Project|Restore NuGet Packages.

Visual Studio and Xamarin: Unable to find packages

I'm having problems trying to use Xamarin with Visual Studio 2017 in Windows 10. I use the Visual Studio Installer to get the Mobile Development tools, including Xamarin, but when I create a Cross-platform template of type Mobile app (Xamarin.Forms) I get a few error messages saying:
Error NU1101 Unable to find package Xamarin.Forms. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.v7.MediaRouter. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.Design. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.v7.AppCompat. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.v7.CardView. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Android.Support.v4. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source
Error NU1101 Unable to find package Xamarin.Forms. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source App2 C:\Users\rca_r\Documents\Visual Studio 2017\App2\App2\App2\App2.csproj*
So I can do basically nothing. Seems like a problem with paths or references, I don't know. I hope you can help me.
Thanks in advance.
It seems Visual Studio is trying to find the packages only among the offline package sources, while they are available on NuGet. I would suggest first checking your internet connection and then checking the NuGet Package sources.
In Visual Studio go to Tools -> NuGet Package Manager -> Package Manager Settings. Here select the Package Sources tab in the tree on the left. You should see the following:
If the nuget.org package source is missing, add it manually by clicking the green plus button in the top right corner and setting:
Name: nuget.org
Source: https://api.nuget.org/v3/index.json

What is the latest version of NuGet that works with Visual Studio 2012?

I am trying to add a nuget package (PiranhaCMS) to my VS2012/NET45 project. The nuget package itself depends on AutoMapper. When I try to install I get the message
'AutoMapper' already has a dependency defined for 'NETStandard.Library'
I'm confused because Piranha itself depends on NET45 not NETStandard. Research indicates I might need a later version of nuget. Having invoked nuget update -self on the nuget.exe in the .nuget folder under the solution, I tried again but got the same message.
What's further confusing me is nuget.exe is on 4.2.0.4168 but VS2012's Help, About dialog says the NuGet Package Manager is on 2.8.60318.667.
What I need to know is, can I get this package installed into this VS2012 solution? If so, how? If I can't do I need to move to VS017 so I can use a later version of NuGet which will install the package for me, even if the solution continues to target NET45?
can I get this package installed into this VS2012 solution? If so, how?
We could not get this package installed into this Visual Studio 2012. That because full NetStandard and NetCoreApp support for VS2013 (NuGet version is 2.12) and the latest version for Visual Studio 2012 is 2.8.6. so we will get that error when we install the package "PiranhaCMS" by Visual Studio 2012.
You can refer to the NuGet release note for 2.12 for detail info.
If I can't do I need to move to VS017 so I can use a later version of
NuGet which will install the package for me, even if the solution
continues to target NET45?
Yes, you can install that package to the solution continues to target NET45 on Visual Studio 2017.

How to get visual studio 2010 to install a NuGet Package

I have a Visual Studio 2010 Solution Template.
When the user creates a solution using this template I want NuGet to get the latest version of that a package and install it.
The package is my own, shared on a network drive, maybe this is the issue.
I've looked at NuGet Restore and the Auto update feature but it still fails to get my package.
Here is a link to how to install packages via Visual Studio Template - http://docs.nuget.org/docs/reference/packages-in-visual-studio-templates.
Currently NuGet supports three package repositories, as discussed by the document. Your template can install a fixed version of NuGet packages; and the template consumer will need to update to the latest version themselves.

Nuget Package install/update fails with error "Id is required" in Visual Studio 2010

I am using VS 2010. Want to install Sendgrid Nuget package.
So on package manage console I give following command.
PM> Install-Package Sendgrid
which gives error as follows:
Id is required.
Version is required.
Authors is required.
Description is required.
Even if try this from solution explorer, by adding package reference online, it gives same error.
How can I download this Sendgrid package?
I have faced similar issues on Visual Studio 2010 and later found that same pkg can be installed via Visual Studio 2012. Most probably you need to update your Nuget pkg manager in Visual Studio 2010.
Go to Tools -> Extension Manager -> Updates -> Update Nuget
In my case I had to update from version 1.0.11220.104 to 2.5.40416.9020.
Another thing I would like to point that you might face this error while trying to update Nuget.
"The signature on the update version of 'NuGet Package Manager' does not match the signature on the installed version."
In that case, uninstall Nuget, restart VS 2010 and install Nuget again. Source: http://docs.nuget.org/docs/reference/known-issues

Resources