Skip to content

Commit

Permalink
When installing non-stable channel, pick dev17/vs2022
Browse files Browse the repository at this point in the history
Fixes #104
  • Loading branch information
kzu committed Aug 10, 2021
1 parent 9c4344f commit 5ddb9f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/VisualStudio/InstallerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ public Task ModifyAsync(string channelUri, Sku? sku, IEnumerable<string> args, T
=> RunAsync("modify", channelUri, sku, args, output);

Task RunAsync(string command, Channel? channel, Sku? sku, IEnumerable<string> args, TextWriter output)
=> RunAsync(command, "https://aka.ms/vs/16/" + MapChannel(channel), sku, args, output);
{
var vs = channel == null || channel == Channel.Release ? "16" : "17";
return RunAsync(command, $"https://aka.ms/vs/{vs}/{MapChannel(channel)}", sku, args, output);
}

async Task RunAsync(string command, string channelUri, Sku? sku, IEnumerable<string> args, TextWriter output)
{
Expand Down

0 comments on commit 5ddb9f1

Please sign in to comment.