423,850 Members | 1,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,850 IT Pros & Developers. It's quick & easy.

Error trying to install NuGet package in VS 2017

P: 49
Hello

I am trying to install Install-Package WebHelpers and Install-Package System.Web.Helpers.Crypto via NuGet in Visual Studio 2017 but get the following errors respectively:

Install-Package : Project 'Default' is not found.
At line:1 char:1
+ Install-Package WebHelpers -Version 4.0.2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Default:String) [Install-Package], ItemNotFoundException
+ FullyQualifiedErrorId : NuGetProjectNotFound,NuGet.PackageManagement.Power ShellCmdlets.InstallPackageCommand

and

Install-Package : Project 'Default' is not found.
At line:1 char:1
+ Install-Package System.Web.Helpers.Crypto -Version 3.2.3
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
+ CategoryInfo : ObjectNotFound: (Default:String) [Install-Package], ItemNotFoundException
+ FullyQualifiedErrorId : NuGetProjectNotFound,NuGet.PackageManagement.Power ShellCmdlets.InstallPackageCommand

What am I doing wrong, please?

Thank you.
4 Weeks Ago #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.