How to resolve “Install-Package : The current environment doesn't have a solution open.”

前端 未结 1 1908
时光说笑
时光说笑 2021-02-05 05:29

I have a solution having 1 project. Open Package Manager Console, run Install-Package MSBuildTasks But it gave me an error below:

Install-Package : The current          


        
1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 05:59

    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.

    0 讨论(0)
提交回复
热议问题