.NET Core的“dotnet restore”、“dotnet build”和“dotnet run”命令都是用来干什么的?
- 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
- dotnet run
.NET CLI(.NET Core Command-Line) GitHub:https://github.com/dotnet/cli
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号