@@ -85,7 +85,9 @@ async Task<bool> DownloadDotNetInstallScript (Context context, string dotnetScri
85
85
Log . StatusLine ( "Downloading dotnet-install script..." ) ;
86
86
87
87
if ( File . Exists ( dotnetScriptPath ) ) {
88
- Log . WarningLine ( $ "Using cached installation script found in '{ dotnetScriptPath } '") ;
88
+ if ( ! bool . TryParse ( Environment . GetEnvironmentVariable ( "RunningOnCI" ) , out var ci ) || ! ci ) {
89
+ Log . WarningLine ( $ "Using cached installation script found in '{ dotnetScriptPath } '") ;
90
+ }
89
91
return true ;
90
92
}
91
93
@@ -143,11 +145,13 @@ async Task<bool> DownloadDotNetArchive (Context context, string archiveDestinati
143
145
144
146
string [ ] GetInstallationScriptArgs ( string version , string dotnetPath , string dotnetScriptPath , bool onlyGetUrls , bool runtimeOnly )
145
147
{
148
+ const string feed = "https://ci.dot.net/public" ;
149
+
146
150
List < string > args ;
147
151
if ( Context . IsWindows ) {
148
152
args = new List < string > {
149
153
"-NoProfile" , "-ExecutionPolicy" , "unrestricted" , "-file" , dotnetScriptPath ,
150
- "-Version" , version , "-InstallDir" , dotnetPath , "-Verbose"
154
+ "-Version" , version , "-InstallDir" , dotnetPath , "-AzureFeed" , feed , "- Verbose"
151
155
} ;
152
156
if ( runtimeOnly ) {
153
157
args . AddRange ( new string [ ] { "-Runtime" , "dotnet" } ) ;
@@ -160,7 +164,7 @@ string[] GetInstallationScriptArgs (string version, string dotnetPath, string do
160
164
}
161
165
162
166
args = new List < string > {
163
- dotnetScriptPath , "--version" , version , "--install-dir" , dotnetPath , "--verbose"
167
+ dotnetScriptPath , "--version" , version , "--install-dir" , dotnetPath , "--azure-feed" , feed , "-- verbose",
164
168
} ;
165
169
166
170
if ( runtimeOnly ) {
0 commit comments