没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
MANNING
Andrew Lock
Useful .NET CLI (dotnet) commands.
Use --help to see all the optional arguments
Command Description Run from
dotnet restore Restores the NuGet packages for all the
projects in the solution.
Solution folder
dotnet build Builds all the projects in the solution. To
build in
Release mode, use the -c
switch.
Solution folder
dotnet run Runs the project in the current folder. Use
during development to run your app.
Project folder
dotnet publish -c Release –o
<Folder>
Publishes the project to the provided
folder. This copies all the required files to
the provided output folder so that it can be
deployed.
Project folder
dotnet test Builds the project and executes any unit
tests found in the project. Requires the
.NET Test SDK and a testing framework
adapter (see chapter 20).
Project folder
dotnet add package <Name> Installs the NuGet package with the pro-
vided name into the current project.
Optionally, specify a package version, for
example -v 2.1.0.
Project folder
dotnet new --list Views all the installed templates for creat-
ing ASP.NET Core apps, libraries, test proj-
ects, solution files, and much more.
Anywhere
dotnet new --install
<PackageName>
Installs a new template from the provided
NuGet package name. For example,
dotnet new --install
"NetEscapades.Templates::*"
.
Anywhere
dotnet new <Template> –o <Folder>
-n <NewName>
Creates a new item from the provided tem-
plate, specifying the folder in which to
place the item, and the name for the item.
Anywhere, empty
folder for new
projects
dotnet ef --help Displays help for managing your database
and migrations using EF Core. Requires
the EF Core tools (see chapter 12).
Project folder
dotnet ef migrations add <Name> Adds a new EF Core migration to the proj-
ect with the provided name.
Project folder
dotnet ef database update Applies pending EF Core migrations to a
database. Warning—this will modify your
database!
Project folder
ASP.NET
Core in Action
ANDREW LOCK
MANNING
SHELTER ISLAND
For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 761
Shelter Island, NY 11964
Email: orders@manning.com
©2018 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form or by means electronic, mechanical, photocopying, or otherwise, without prior written
permission of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books
are printed on paper that is at least 15 percent recycled and processed without the use of
elemental chlorine.
Manning Publications Co. Development editor: Marina Michaels
20 Baldwin Road Technical development editor: Kris Athi
PO Box 761 Review editor: Ivan Martinovic´
Shelter Island, NY 11964 Project manager: David Novak
Copyeditor: Safis Editing
Proofreader: Elizabeth Martin
Technical proofreader: Tanya Wilke
Typesetter: Dottie Marsico
Cover designer: Marija Tudor
ISBN 9781617294617
Printed in the United States of America
12345678910–EBM–232221201918
剩余707页未读,继续阅读
资源评论
[道一]
- 粉丝: 0
- 资源: 62
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功