因此,我在刚购买的这款小型笔记本电脑(thinkpad x220)上安装了ubuntu 18.04.2。我正在尝试使其成为可以在其中编程asp.net核心应用程序的计算机。但是我终生无法找到如何在Ubuntu终端的Package Manager Console中编写命令的方法。
例如,如果您在Windows上打开Visual Studio,然后转到“工具”->“ Nuget软件包管理器”->“软件包管理器控制台”。这将打开程序包管理器控制台。我希望能够在Ubuntu上访问它。如何通过终端访问此内容?
我当前正在使用VSCode / Vim作为文本编辑器。我已经安装了dotnet,powershell和nuget。我已通读dotnet -h
和nuget -h
,但找不到任何解决此问题的方法。不过,我发现了一些其他有用的信息,所以很好。
之所以尝试找到Package Manager控制台,是因为我正在通过asp.net核心上的Udemy课程进行学习,并且需要输入update-database命令。
答案 0 :(得分:1)
Visual Studio中的Nuget软件包管理器控制台只是一个Powershell外壳,并允许运行.NET提供的Commandlet。它在其他平台上不可用,但是对于Entity Framework数据库处理,您可以使用<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About | Kane Concrete & Construction</title>
<link rel="stylesheet" href="../css/about.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Arvo|Bitter|Lato|Montserrat|Noto+Sans|Open+Sans|Poppins|Roboto|Sarabun|Ubuntu" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Abel|Asap|Krub|Oxygen|Rajdhani|Staatliches|Varela+Round" rel="stylesheet">
</head>
<body>
<header>
<div class="wrapper2">
<nav>
<div class="logo">
<i class="fab fa-accusoft"></i>
</div>
<div class="nav">
<div class="ham-menu">
<div class="m1" id="m1"></div>
<div class="m2" id="m2"></div>
<div class="m3" id="m3"></div>
</div>
<ul>
<li class="after"><a href="index.html">Home</a></li>
<li class="after"><a href="about.html">About</a></li>
<li class="after"><a href="#services">Services</a></li>
<li class="after"><a href="careers.html">Careers</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
<h1>About Us</h1>
</div>
</header>
<section class="history" style="background-color: white;">
<h2>Our History</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat ea magni suscipit modi sapiente. Perferendis odit, incidunt, amet adipisci, quaerat aperiam, impedit nemo excepturi culpa quis libero nostrum molestiae error eveniet ipsa repellat?
Cum quae laudantium totam neque provident fuga rerum quasi dolorum vel obcaecati quidem perspiciatis iure maiores dignissimos, recusandae enim error libero nobis inventore quo adipisci perferendis. Pariatur. Lorem ipsum dolor sit amet, consectetur
adipisicing elit. Possimus, dolor.</p>
</section>
<section class="services" id="services">
<div class="wrapper">
<h1>Services</h1>
</div>
<div class="content">
<div>
<ul class="skills">
<li>
<p style="color: rgba(102,102,102, 0.85);">Flatwork</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Paving</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Driveways</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Sidewalks</p>
</li>
</ul>
</div>
<div class="move">
<ul class="skills">
<li>
<p style="color: rgba(102,102,102, 0.85);">Foundations</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Flooring</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Seismic Retrofit</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Other Concrete Concerns</p>
</li>
</ul>
</div>
<div>
<ul class="skills">
<li>
<p style="color: rgba(102,102,102, 0.85);">Commercial</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Residential</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Decks and Patios</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Kitchen Flooring</p>
</li>
</ul>
</div>
<div>
<ul class="skills">
<li>
<p style="color: rgba(102,102,102, 0.85);">Demolition</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Grading/Clean up</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Slab Repair</p>
</li>
<li>
<p style="color: rgba(102,102,102, 0.85);">Curb Repair</p>
</li>
</ul>
</div>
</div>
</section>
<section class="testimony">
<div class="block">
<span><i class="fas fa-quote-left left-quote"></i></span>
<h1 class="first-quote">Most companys that I searched charged way too much, until I found Kane. They were fast, cheap, and very professional. I'm happy I chose them and will definitely keep them in mind for any other of my future projects.<span class="quote"> -Some Person</span></h1>
</div>
<div class="block">
<span class="move-quote"><i class="fas fa-quote-left left-quote"></i></span>
<h1 class="move-quote">I was very impressed with their work. They were cost effective and efficient and overall a good team. Saw a lot of synergy with their organization and others they worked with. They definitely know what they're doing.<span class="quote">-Some Person</span></h1>
</div>
</section>
<section class="footer">
<div class="wrapper">
<div class="links">
<div class="inner">
<h1><span>Quick Links</span></h1>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="about.html#services">Services</a>
<a href="careers.html">Careers</a>
<a href="contact.html">Contact</a>
<a href="contact.html#quote">Quote</a>
</div>
</div>
<div class="social">
<div class="inner">
<h1><span>Social</span></h1>
<i class="fab fa-linkedin"><a href="#" class="social-net"></a></i>
<i class="fab fa-facebook"><a href="#" class="social-net"></a></i>
<i class="fab fa-twitter-square"><a href="#" class="social-net"></a></i>
<button name="msg">Send</button>
<textarea name="msg" class="footer-textarea" cols="45" rows="5" placeholder="Send is some feedback..."></textarea>
</div>
</div>
<div class="contact">
<div class="inner" class="wrap">
<h1><span>Contact</span></h1>
<p>(208)546-7827 - <span class="dark">Matt</span></p>
<p>(208)546-7827 - <span class="dark">Keegan</span></p>
<p><span class="dark">Address</span> - P.O. Box 50860 IF, ID 83405</p>
<p><span class="dark">Email</span> - KaneConcrete@fake.com</p>
</div>
</div>
</div>
<div class="copyright"><span>© 2019 - Kane Concrete & Construction | ALL RIGHTS RESERVED</span></div>
</section>
<script src="../script.js"></script>
</body>
</html>
命令,在这种情况下为dotnet ef database
。
documentation中的这些命令行工具的详细信息。