How can I access the nuget package manager console on ubuntu 18.04.2

痴心易碎 提交于 2021-01-27 21:17:08

问题


So I installed ubuntu 18.04.2 on this little laptop that I just bought, the thinkpad x220. I'm trying to make it into a machine with which I can program asp.net core applications on. However I can't for the life of me find how to write commands in the Package Manager Console in the Ubuntu terminal.

For example if you open visual studio on windows and go Tools->Nuget Package Manager->Package Manager Console. This opens the Package Manager Console. I want to be able to access this on Ubuntu. How can I access this via the terminal?

I am currently using VSCode/Vim as my text editor. I have installed both dotnet, powershell and just now nuget. I have read through dotnet -h and nuget -h but wasn't able to find anything to solve this problem. I found some other useful bits of information though, so that was good.

The reason I am trying to find the Package Manager Console is because I am working my way through an Udemy course on asp.net core and I need to enter the update-database command.


回答1:


The Nuget Package Manager Console in Visual Studio is just a Powershell shell and allows running the commandlets provided by .NET. It isn’t available on other platforms, but for Entity Framework database handling you can use the dotnet ef database commands, in this case dotnet ef database update.

More information of these command line tools in the documentation.



来源:https://stackoverflow.com/questions/55887112/how-can-i-access-the-nuget-package-manager-console-on-ubuntu-18-04-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!