没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ASP.NET Core is a re-imagining of the .NET Framework that frees developers from Visual Studio and Windows. ASP.NET Core in Action is for C# developers without any web development experience who want to get started and productive using ASP.NET Core to build web applications.
资源推荐
资源详情
资源评论
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
剩余713页未读,继续阅读
资源评论
weixin_38661580
- 粉丝: 3
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功