Skip to content

Instantly share code, notes, and snippets.

@spboyer
Created November 19, 2015 11:26
Show Gist options
  • Save spboyer/de826bc191409de34516 to your computer and use it in GitHub Desktop.
Save spboyer/de826bc191409de34516 to your computer and use it in GitHub Desktop.
dotnet cli bridage
### 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