Skip to content

Commit

Permalink
[build] specify --azure-feed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpeppers committed Jan 5, 2022
1 parent e6f5595 commit be85722
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions build-tools/xaprepare/xaprepare/Steps/Step_InstallDotNetPreview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,30 @@ async Task<bool> InstallDotNetAsync (Context context, string dotnetPath, string
var type = runtimeOnly ? "runtime" : "SDK";
Log.StatusLine ($"Installing dotnet {type} '{version}'...");

//TODO: temporarily specify the feed until we get:
// https://github.com/dotnet/install-scripts/issues/229
var feed = "https://dotnetbuilds.blob.core.windows.net/public";
if (Context.IsWindows) {
var args = new List<string> {
"-NoProfile", "-ExecutionPolicy", "unrestricted", "-file", dotnetScriptPath,
"-Version", version, "-InstallDir", dotnetPath, "-Verbose"
"-NoProfile",
"-ExecutionPolicy", "unrestricted",
"-file", dotnetScriptPath,
"-Version", version,
"-InstallDir", dotnetPath,
"-AzureFeed", feed,
"-Verbose"
};
if (runtimeOnly)
args.AddRange (new string [] { "-Runtime", "dotnet" });

return Utilities.RunCommand ("powershell.exe", args.ToArray ());
} else {
var args = new List<string> {
dotnetScriptPath, "--version", version, "--install-dir", dotnetPath, "--verbose"
dotnetScriptPath,
"--version", version,
"--install-dir", dotnetPath,
"--azure-feed", feed,
"--verbose"
};
if (runtimeOnly)
args.AddRange (new string [] { "-Runtime", "dotnet" });
Expand Down

0 comments on commit be85722

Please sign in to comment.