.NET Core的“dotnet restore”、“dotnet build”和“dotnet run”命令都是用来干什么的?
2016-05-19 11:45
609 查看
dotnet restore
源代码:https://github.com/dotnet/cli/tree/rel/1.0.0/src/dotnet/commands/dotnet-restore
入口:https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-restore/Program.cs
作用:主要是寻找当前目录下的项目文件(project.json),然后利用NuGet库还原整个项目的依赖库,然后遍历每个目录,生成项目文件,继续还原该项目文件中的依赖项。
dotnet build
源代码:https://github.com/dotnet/cli/tree/rel/1.0.0/src/dotnet/commands/dotnet-build
入口:https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-build/Program.cs
作用:编译应用程序
dotnet run
源代码:https://github.com/dotnet/cli/tree/rel/1.0.0/src/dotnet/commands/dotnet-run
入口:https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-run/Program.cs
作用:运行应用程序
.NET CLI(.NET Core Command-Line) GitHub:https://github.com/dotnet/cli
源代码:https://github.com/dotnet/cli/tree/rel/1.0.0/src/dotnet/commands/dotnet-restore
入口:https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-restore/Program.cs
作用:主要是寻找当前目录下的项目文件(project.json),然后利用NuGet库还原整个项目的依赖库,然后遍历每个目录,生成项目文件,继续还原该项目文件中的依赖项。
dotnet build
源代码:https://github.com/dotnet/cli/tree/rel/1.0.0/src/dotnet/commands/dotnet-build
入口:https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-build/Program.cs
作用:编译应用程序
dotnet run
源代码:https://github.com/dotnet/cli/tree/rel/1.0.0/src/dotnet/commands/dotnet-run
入口:https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-run/Program.cs
作用:运行应用程序
.NET CLI(.NET Core Command-Line) GitHub:https://github.com/dotnet/cli
相关文章推荐
- Hexo个人博客搭建问题之 './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND'
- PHP CURL上传文件出现413 Request Entity Too Large
- POJ-2524-Ubiquitous Religions(并查集 集合数量)
- 自定义控件之AndroidSegmentControlView,仿IOS平台UISegmentControlView,继承自View
- JAVA_GUI-获取字符串的高度和宽度
- 在Abp中集成Swagger UI功能
- QueryDSL介绍
- STL 源码剖析读书笔记五:序列式容器之 heap、priority_queue、slist
- iOS利用storyboard修改UITextField的placeholder文字颜色
- N - Longest Ordered Subsequence——POJ 最长递增子序列
- Java实现快速排序排序QuickSort
- Java Map集合按照key和value排序之法
- iOS 自定义UITabBar
- Android as Bluetooth Low Energy Peripheral (GATT server).
- 优先队列priority_queue的使用方法
- UI基础 获取当前屏幕显示的viewcontroller
- Apue:daemon
- LigerUI 快速开发UI框架
- 解决淘宝sui插件后退bug
- Leetcode 347. Top K Frequent Elements