Port changes from core-setup's dotnet-install script to CLI
Port changes from core-setup's dotnet-install script to CLI

nguerrera/cli,svick/cli,dasMulli/cli,johnbeisner/cli,ravimeda/cli,nguerrera/cli,nguerrera/cli,blackdwarf/cli,johnbeisner/cli,weshaggard/cli,weshaggard/cli,naamunds/cli,svick/cli,mlorbetske/cli,Faizan2304/cli,mlorbetske/cli,jonsequitur/cli,Faizan2304/cli,naamunds/cli,jonsequitur/cli,naamunds/cli,harshjain2/cli,livarcocc/cli-1,dasMulli/cli,weshaggard/cli,mlorbetske/cli,svick/cli,johnbeisner/cli,Faizan2304/cli,dasMulli/cli,EdwardBlair/cli,EdwardBlair/cli,harshjain2/cli,jonsequitur/cli,ravimeda/cli,livarcocc/cli-1,AbhitejJohn/cli,weshaggard/cli,AbhitejJohn/cli,harshjain2/cli,livarcocc/cli-1,blackdwarf/cli,nguerrera/cli,jonsequitur/cli,blackdwarf/cli,EdwardBlair/cli,ravimeda/cli,blackdwarf/cli,naamunds/cli,AbhitejJohn/cli,mlorbetske/cli,naamunds/cli,AbhitejJohn/cli,weshaggard/cli