Created
November 19, 2015 11:26
-
-
Save spboyer/de826bc191409de34516 to your computer and use it in GitHub Desktop.
dotnet cli bridage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### dnvm list ... | |
### dnx web -> dotnet run | |
### dnx run -> dotnet run | |
### dnu publish -> dotnet publish | |
### dnu build -> dotnet compile | |
### dnu restore -> dotnet restore | |
### dnu install -> dotnet install | |
function dotnet() { | |
local c=$1; | |
local args=$2; | |
local opt=$3 | |
case $c in | |
'run') #echo 'dnx web' | |
dnx web | |
;; | |
'publish') #echo 'dnu publish' | |
dnu publish $args $opt | |
;; | |
'compile') #echo 'dnu build' | |
dnu build $args $opt | |
;; | |
'restore') #echo 'dnu restore' | |
dnu restore | |
;; | |
'install') #echo 'dnu install' | |
dnu install $args $opt | |
;; | |
'list') | |
#dnvm list - not sure if this is relavent | |
dnvm list | |
;; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment