Skip to content

Commit be85722

Browse files
[build] specify --azure-feed
Context: dotnet/install-scripts#229
1 parent e6f5595 commit be85722

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

build-tools/xaprepare/xaprepare/Steps/Step_InstallDotNetPreview.cs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)