@@ -102,18 +102,30 @@ async Task<bool> InstallDotNetAsync (Context context, string dotnetPath, string
102102 var type = runtimeOnly ? "runtime" : "SDK" ;
103103 Log . StatusLine ( $ "Installing dotnet { type } '{ version } '...") ;
104104
105+ //TODO: temporarily specify the feed until we get:
106+ // https://github.com/dotnet/install-scripts/issues/229
107+ var feed = "https://dotnetbuilds.blob.core.windows.net/public" ;
105108 if ( Context . IsWindows ) {
106109 var args = new List < string > {
107- "-NoProfile" , "-ExecutionPolicy" , "unrestricted" , "-file" , dotnetScriptPath ,
108- "-Version" , version , "-InstallDir" , dotnetPath , "-Verbose"
110+ "-NoProfile" ,
111+ "-ExecutionPolicy" , "unrestricted" ,
112+ "-file" , dotnetScriptPath ,
113+ "-Version" , version ,
114+ "-InstallDir" , dotnetPath ,
115+ "-AzureFeed" , feed ,
116+ "-Verbose"
109117 } ;
110118 if ( runtimeOnly )
111119 args . AddRange ( new string [ ] { "-Runtime" , "dotnet" } ) ;
112120
113121 return Utilities . RunCommand ( "powershell.exe" , args . ToArray ( ) ) ;
114122 } else {
115123 var args = new List < string > {
116- dotnetScriptPath , "--version" , version , "--install-dir" , dotnetPath , "--verbose"
124+ dotnetScriptPath ,
125+ "--version" , version ,
126+ "--install-dir" , dotnetPath ,
127+ "--azure-feed" , feed ,
128+ "--verbose"
117129 } ;
118130 if ( runtimeOnly )
119131 args . AddRange ( new string [ ] { "-Runtime" , "dotnet" } ) ;
0 commit comments