Wednesday, April 12, 2017

Today first time i am using the  Package Manager Console, for run Install-Package MSBuildTasks,
when i am running the command "Install-Package elmah" i am facing the below issue


PM> Install-Package elmah
Install-Package : The current environment doesn't have a solution open.
At line:1 char:1
+ Install-Package elmah
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetNoActiveSolution,NuGet.PowerShell.Commands.InstallPackageCommand



So i have think put this post might be help to some one.


The solution are as  below :-



I usually get this error because I created or opened a project (.csproj or other) that doesn't have a saved solution (.sln) associated with it.
If you go to File->Save All it should offer to save the solution somewhere. Save it and that makes the error go away for me.

Thank you,
Arjun Walmiki 

No comments:

Post a Comment