如何在ubuntu 18.04.2上访问nuget软件包管理器控制台 [英] How can I access the nuget package manager console on ubuntu 18.04.2

查看:106
本文介绍了如何在ubuntu 18.04.2上访问nuget软件包管理器控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我在刚购买的这款小型笔记本电脑(thinkpad x220)上安装了ubuntu 18.04.2.我正在尝试使其成为可以在其中编程asp.net核心应用程序的计算机.但是我终生无法找到如何在Ubuntu终端的Package Manager控制台中编写命令的方法.

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.

例如,如果您在Windows上打开Visual Studio,然后转到工具"->"Nuget程序包管理器"->程序包管理器控制台".这将打开程序包管理器控制台.我希望能够在Ubuntu上访问它.如何通过终端访问此内容?

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?

我当前正在使用VSCode/Vim作为文本编辑器.我已经安装了dotnet,powershell和nuget.我已经阅读了 dotnet -h nuget -h ,但是找不到任何解决该问题的方法.不过,我发现了一些其他有用的信息,所以很好.

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.

我试图找到程序包管理器控制台的原因是因为我正在通过asp.net核心上的Udemy课程进行学习,因此需要输入update-database命令.

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.

推荐答案

Visual Studio中的Nuget软件包管理器控制台只是一个Powershell Shell,并允许运行.NET提供的Commandlet.它在其他平台上不可用,但是对于Entity Framework数据库处理,您可以使用 dotnet ef数据库命令,在本例中为 dotnet ef数据库更新.

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.

文档.

这篇关于如何在ubuntu 18.04.2上访问nuget软件包管理器控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆