If you are using Visual Studio Code to develop ASP.NET Core applications, you can automate commands dotnet restore, dotnet build, dotnet run, dotnet cleanwith a short using doskey.
doskey c = dotnet clean
doskey b = dotnet build
doskey r = dotnet restore
doskey rr = dotnet run
doskey p = dotnet publish -c release -r centos.7-x64 (NOTE: Here centos is the target OS)
, c, b, r, rr p, Visual Studio Code. , $T. ,
doskey cb = dotnet clean $T dotnet build $T echo ************ DONE ************
doskey crb = dotnet clean $T dotnet restore $T dotnet build $T echo ************ DONE ************
doskey crbr = dotnet clean $T dotnet restore $T dotnet build $T dotnet run $T echo ************ DONE ************
doskey crbp = dotnet clean $T dotnet restore $T dotnet build $T dotnet publish - c release -r centos.7-x64 $T echo ************ DONE ************
doskey cbp = dotnet clean $T dotnet build $T dotnet publish -c release -r centos.7-x64 $T echo ************ DONE ************
cb, crb, crbr, crbp rbp .
Visual Studio, , (, doskey.bat) usersettings.json Visual Studio ( ):
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": [
"/K C:\\Users\\Username\\Desktop\\doskey.bat"
],