Skip to content

Commit 5ddb9f1

Browse files
committed
When installing non-stable channel, pick dev17/vs2022
Fixes #104
1 parent 9c4344f commit 5ddb9f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/VisualStudio/InstallerService.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ public Task ModifyAsync(string channelUri, Sku? sku, IEnumerable<string> args, T
2626
=> RunAsync("modify", channelUri, sku, args, output);
2727

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

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

0 commit comments

Comments
 (0)