-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
780 lines (679 loc) · 35.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,maximum-scale=2">
<link rel="stylesheet" type="text/css" media="screen" href="/dotnet-vs/assets/css/style.css?v=e3a4254016e92d3da99ec8ecad04466bfc8acf8f">
<!-- Begin Jekyll SEO tag v2.6.1 -->
<title>dotnet-vs | A global tool for managing Visual Studio installations</title>
<meta name="generator" content="Jekyll v3.9.0" />
<meta property="og:title" content="dotnet-vs" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="A global tool for managing Visual Studio installations" />
<meta property="og:description" content="A global tool for managing Visual Studio installations" />
<meta property="og:site_name" content="dotnet-vs" />
<script type="application/ld+json">
{"@type":"WebSite","headline":"dotnet-vs","url":"/dotnet-vs/","description":"A global tool for managing Visual Studio installations","name":"dotnet-vs","@context":"https://schema.org"}</script>
<!-- End Jekyll SEO tag -->
</head>
<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/devlooped/dotnet-vs">View on GitHub</a>
<h1 id="project_title">dotnet-vs</h1>
<h2 id="project_tagline">A global tool for managing Visual Studio installations</h2>
</header>
</div>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<h1 id="-dotnet-vs"><img src="https://raw.githubusercontent.com/devlooped/dotnet-vs/main/docs/img/icon-32.png" alt="Icon" /> dotnet-vs</h1>
<p>A global tool for running, managing and querying Visual Studio installations</p>
<p><a href="https://www.nuget.org/packages/dotnet-vs"><img src="https://img.shields.io/nuget/v/dotnet-vs.svg?color=royalblue" alt="Version" /></a>
<a href="https://www.nuget.org/packages/dotnet-vs"><img src="https://img.shields.io/nuget/dt/dotnet-vs.svg?color=darkmagenta" alt="Downloads" /></a>
<a href="https://github.com/devlooped/dotnet-vs/blob/master/license.txt"><img src="https://img.shields.io/github/license/devlooped/dotnet-vs.svg?color=blue" alt="License" /></a>
<a href="https://github.com/devlooped/dotnet-vs/actions?query=branch%3Amain+workflow%3Abuild+"><img src="https://github.com/devlooped/dotnet-vs/workflows/build/badge.svg?branch=main" alt="CI Status" /></a>
<a href="https://pkg.kzu.io/index.json"><img src="https://img.shields.io/endpoint?label=nuget.ci&color=brightgreen&url=https://shields.kzu.io/vpre/dotnet-vs/main" alt="CI Version" /></a></p>
<p>Installing or updating (same command for both):</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dotnet tool update -g dotnet-vs
</code></pre></div></div>
<p>To get the CI version:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dotnet tool update -g dotnet-vs --no-cache --add-source https://pkg.kzu.io/index.json
</code></pre></div></div>
<p>Command line parsing is done with <a href="https://www.nuget.org/packages/mono.options">Mono.Options</a> so
all the following variants for arguments are supported: <code class="language-plaintext highlighter-rouge">-flag</code>, <code class="language-plaintext highlighter-rouge">--flag</code>, <code class="language-plaintext highlighter-rouge">/flag</code>, <code class="language-plaintext highlighter-rouge">-flag=value</code>, <code class="language-plaintext highlighter-rouge">--flag=value</code>,
<code class="language-plaintext highlighter-rouge">/flag=value</code>, <code class="language-plaintext highlighter-rouge">-flag:value</code>, <code class="language-plaintext highlighter-rouge">--flag:value</code>, <code class="language-plaintext highlighter-rouge">/flag:value</code>, <code class="language-plaintext highlighter-rouge">-flag value</code>, <code class="language-plaintext highlighter-rouge">--flag value</code>, <code class="language-plaintext highlighter-rouge">/flag value</code>.</p>
<p>Supported commands:</p>
<h2 id="alias">alias</h2>
<p>Shows the list of saved aliases</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs alias [options]
</code></pre></div></div>
<p>All built-in commands support a <code class="language-plaintext highlighter-rouge">-save:[alias]</code> option that will cause
the command to be saved with that alias. From that point on, it’s possible
to just run the command (including all saved arguments) by just running
the alias instead.</p>
<p>Examples:</p>
<!-- EXAMPLES_BEGIN -->
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># Save the first VS enterprise with the Xamarin/Mobile workload as the "mobile" alias
> vs -sku:ent -first +mobile -save:mobile
# Runs the saved alias with all the original arguments
> vs mobile
</code></pre></div></div>
<!-- EXAMPLES_END -->
<h2 id="client">client</h2>
<p>Launches Visual Studio in client mode</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs client [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>Run release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>Run preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>Run internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">first</code></td>
<td>Run first matching instance.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">exp\|experimental</code></td>
<td>Run experimental instance instead of regular.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">w\|workspaceId:</code></td>
<td>The workspace ID to connect to</td>
</tr>
</tbody>
</table>
<h2 id="config">config</h2>
<p>Opens the config folder.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs config [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>open release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>open preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>open internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">first</code></td>
<td>open first matching instance.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">exp\|experimental</code></td>
<td>open experimental instance instead of regular.</td>
</tr>
</tbody>
</table>
<h2 id="install">install</h2>
<p>Installs a specific edition of Visual Studio.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs install [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>install release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>install preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>install internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">add:</code></td>
<td>A workload ID</td>
</tr>
</tbody>
</table>
<p>You can add specific workload IDs by using the supported <a href="#workload-id-switches">workload switches</a>
using the <code class="language-plaintext highlighter-rouge">+</code> prefix.</p>
<p>See the <a href="https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2019#install-options">documentation for the Visual Studio installer command line options</a>
for the full list of arguments that can be provided.</p>
<p>Common options are <code class="language-plaintext highlighter-rouge">--passive</code>, <code class="language-plaintext highlighter-rouge">quiet</code> and <code class="language-plaintext highlighter-rouge">--wait</code>, for example.</p>
<p>Examples:</p>
<!-- EXAMPLES_BEGIN -->
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># Installs VS enterprise with the Maui/Mobile workload
# Note the -sku: switch/prefix is optional
> vs install Enterprise +mobile
# Install VS community with the .NET Core, ASP.NET and Azure workloads,
# shows installation progress and waits for it to finish before returning
> vs install +core +web +azure
</code></pre></div></div>
<!-- EXAMPLES_END -->
<h2 id="kill">kill</h2>
<p>Kills running devenv processes.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs kill [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>kill release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>kill preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>kill internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">exp\|experimental</code></td>
<td>kill experimental instance instead of regular.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">first</code></td>
<td>kill first matching instance.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">all</code></td>
<td>kill all instances.</td>
</tr>
</tbody>
</table>
<p>Examples:</p>
<!-- EXAMPLES_BEGIN -->
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># Kill all running instances of Visual Studio
> vs kill all
</code></pre></div></div>
<!-- EXAMPLES_END -->
<h2 id="log">log</h2>
<p>Opens the folder containing the Activity.log file.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs log [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>open release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>open preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>open internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">first</code></td>
<td>open first matching instance.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">exp\|experimental</code></td>
<td>open experimental instance instead of regular.</td>
</tr>
</tbody>
</table>
<h2 id="modify">modify</h2>
<p>Modifies an installation of Visual Studio.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs modify [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>modify release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>modify preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>modify internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">first</code></td>
<td>modify first matching instance.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">add:</code></td>
<td>A workload ID</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">remove:</code></td>
<td>A workload ID</td>
</tr>
</tbody>
</table>
<p>A shorthand notation is available for <code class="language-plaintext highlighter-rouge">add|remove [workload ID]</code> via the supported
workload ID switches/aliases, using the <code class="language-plaintext highlighter-rouge">+</code> (for <code class="language-plaintext highlighter-rouge">add</code>) and <code class="language-plaintext highlighter-rouge">-</code> (for <code class="language-plaintext highlighter-rouge">remove</code>) prefixes.</p>
<p>Examples:</p>
<!-- EXAMPLES_BEGIN -->
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># Add .NET Core Workload to installed Visual Studio Preview
> vs modify preview +core
</code></pre></div></div>
<!-- EXAMPLES_END -->
<h2 id="run">run</h2>
<p>This is default command, so typically it does not need to be provided as an argument.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs run [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>run release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>run preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>run internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">exp\|experimental</code></td>
<td>run experimental instance instead of regular.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">id:</code></td>
<td>Run a specific instance by its ID</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">f\|first</code></td>
<td>If more than one instance matches the criteria, run the first one sorted by descending build version.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">v\|version:</code></td>
<td>Run specific (semantic) version, such as 16.4 or 16.5.3.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">w\|wait</code></td>
<td>Wait for the started Visual Studio to exit.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">nr\|nodereuse</code></td>
<td>Disable MSBuild node reuse. Useful when testing analyzers, tasks and targets. Defaults to true when running experimental instance.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">default</code></td>
<td>Set as the default version to run when no arguments are provided, or remove the current default (with –default-).</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">requires:</code></td>
<td>A workload ID</td>
</tr>
</tbody>
</table>
<p>All <a href="#workload-id-switches">workload switches</a> are available too to filter the
instance to run, including using the <code class="language-plaintext highlighter-rouge">+</code> prefix/alias syntax.</p>
<p>This command will remember the last VS that was located and run. So the next time you
can just run the same instance by simply using <code class="language-plaintext highlighter-rouge">vs</code> (since <code class="language-plaintext highlighter-rouge">run</code> is the default command
and can be omitted).</p>
<p>Examples:</p>
<!-- EXAMPLES_BEGIN -->
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># Runs the first VS enterprise with the Maui workload
> vs -sku:ent -first +maui
# Runs VS 16.8
> vs -v:16.8
# Runs VS 16.9 preview
> vs -v:16.9 -pre
# Runs the last VS that was run
> vs
</code></pre></div></div>
<!-- EXAMPLES_END -->
<h2 id="update">update</h2>
<p>Updates an installation of Visual Studio.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs update [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>Update release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>Update preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>Update internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">first</code></td>
<td>Update first matching instance.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">all</code></td>
<td>Update all instances.</td>
</tr>
</tbody>
</table>
<h2 id="where">where</h2>
<p>Locates the installed version(s) of Visual Studio that satisfy the requested requirements, optionally retrieving installation properties from it.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Usage: vs where [options]
</code></pre></div></div>
<table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">rel\|release</code></td>
<td>show release version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">pre\|preview</code></td>
<td>show preview version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">int\|internal</code></td>
<td>show internal (aka ‘dogfood’) version</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">sku:</code></td>
<td>Edition, one of <code class="language-plaintext highlighter-rouge">e\|ent\|enterprise</code>, <code class="language-plaintext highlighter-rouge">p\|pro\|professional</code>, <code class="language-plaintext highlighter-rouge">c\|com\|community</code>, <code class="language-plaintext highlighter-rouge">b\|build\|buildtools</code> or <code class="language-plaintext highlighter-rouge">t\|test\|testagent</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">filter:</code></td>
<td>Expression to filter VS instances. E.g. <code class="language-plaintext highlighter-rouge">x => x.InstanceId = '123'</code></td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">first</code></td>
<td>show first matching instance.</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">prop\|property:</code></td>
<td>The name of a property to return</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">list</code></td>
<td>Shows result as a list</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">requires:</code></td>
<td>A workload ID</td>
</tr>
</tbody>
</table>
<p>Supports same options as <code class="language-plaintext highlighter-rouge">vswhere.exe</code>:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> -all Finds all instances even if they are incomplete and may not launch.
-prerelease Also searches prereleases. By default, only releases are searched.
-products arg One or more product IDs to find. Defaults to Community, Professional, and Enterprise.
Specify "*" by itself to search all product instances installed.
See https://aka.ms/vs/workloads for a list of product IDs.
-requires arg One or more workload or component IDs required when finding instances.
All specified IDs must be installed unless -requiresAny is specified.
See https://aka.ms/vs/workloads for a list of workload and component IDs.
-requiresAny Find instances with any one or more workload or components IDs passed to -requires.
-version arg A version range for instances to find. Example: [15.0,16.0) will find versions 15.*.
-latest Return only the newest version and last installed.
-sort Sorts the instances from newest version and last installed to oldest.
When used with "find", first instances are sorted then files are sorted lexigraphically.
-legacy Also searches Visual Studio 2015 and older products. Information is limited.
This option cannot be used with either -products or -requires.
-format arg Return information about instances found in a format described below.
-property arg The name of a property to return. Defaults to "value" format.
Use delimiters ".", "/", or "_" to separate object and property names.
Example: "properties.nickname" will return the "nickname" property under "properties".
-include arg One or more extra properties to include, as described below.
-find arg Returns matching file paths under the installation path. Defaults to "value" format.
The following patterns are supported:
? Matches any one character except "\".
* Matches zero or more characters except "\".
** Searches the current directory and subdirectories for the remaining search pattern.
-nologo Do not show logo information. Some formats noted below will not show a logo anyway.
-utf8 Use UTF-8 encoding (recommended for JSON).
-?, -h, -help Display this help message.
Extra properties:
packages Return an array of packages installed in this instance.
Supported only by the "json" and "xml" formats.
Formats:
json An array of JSON objects for each instance (no logo).
text Colon-delimited properties in separate blocks for each instance (default).
value A single property specified by the -property parameter (no logo).
xml An XML data set containing instances (no logo).
</code></pre></div></div>
<p>A shorthand notation is available for <code class="language-plaintext highlighter-rouge">-requires [workload ID]</code> via the supported
workload ID switches, using the <code class="language-plaintext highlighter-rouge">+</code> prefix (see below).</p>
<p>See also <a href="https://github.com/microsoft/vswhere">vswhere on GitHub</a>.</p>
<h2 id="workload-id-switches">Workload ID switches</h2>
<p>For commands that receive workload ID switches (i.e. <code class="language-plaintext highlighter-rouge">vs where -requires [WORKLOAD_ID]</code> or
<code class="language-plaintext highlighter-rouge">vs install --add [WORKLOAD_ID]</code>), the following aliases are available:</p>
<table>
<thead>
<tr>
<th>Alias</th>
<th>Workload ID</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="language-plaintext highlighter-rouge">mobile</code></td>
<td>Microsoft.VisualStudio.Workload.NetCrossPlat</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">xamarin</code></td>
<td>Microsoft.VisualStudio.Workload.NetCrossPlat</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">maui</code></td>
<td>Microsoft.VisualStudio.Workload.NetCrossPlat</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">core</code></td>
<td>Microsoft.NetCore.Component.DevelopmentTools</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">azure</code></td>
<td>Microsoft.VisualStudio.Workload.Azure</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">data</code></td>
<td>Microsoft.VisualStudio.Workload.Data</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">desktop</code></td>
<td>Microsoft.VisualStudio.Workload.ManagedDesktop</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">unity</code></td>
<td>Microsoft.VisualStudio.Workload.ManagedGame</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">native</code></td>
<td>Microsoft.VisualStudio.Workload.NativeDesktop</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">web</code></td>
<td>Microsoft.VisualStudio.Workload.NetWeb</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">node</code></td>
<td>Microsoft.VisualStudio.Workload.Node</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">office</code></td>
<td>Microsoft.VisualStudio.Workload.Office</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">py</code></td>
<td>Microsoft.VisualStudio.Workload.Python</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">python</code></td>
<td>Microsoft.VisualStudio.Workload.Python</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">uwp</code></td>
<td>Microsoft.VisualStudio.Workload.Universal</td>
</tr>
<tr>
<td><code class="language-plaintext highlighter-rouge">vsx</code></td>
<td>Microsoft.VisualStudio.Workload.VisualStudioExtension</td>
</tr>
</tbody>
</table>
<p>The aliases are converted to the appropriate switch automatically, such as into
<code class="language-plaintext highlighter-rouge">-requires [ID]</code> or <code class="language-plaintext highlighter-rouge">--add [ID]</code>. Additionally, depending on the command being run,
the aliases might use a <code class="language-plaintext highlighter-rouge">+</code> prefix (like <code class="language-plaintext highlighter-rouge">+mobile</code>), which might make for a more
intuitive command line, such as <code class="language-plaintext highlighter-rouge">vs install +mobile -sku:enterprise</code> or <code class="language-plaintext highlighter-rouge">vs +mobile</code>
(runs the VS with the mobile workload installed). The <em>modify</em> command uses <code class="language-plaintext highlighter-rouge">+</code> and <code class="language-plaintext highlighter-rouge">-</code>
prefix to add or remove workloads respectively, for example.</p>
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
<h1 id="sponsors">Sponsors</h1>
<!-- sponsors.md -->
<p><a href="https://github.com/clarius"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/clarius.png" alt="Clarius Org" title="Clarius Org" /></a>
<a href="https://github.com/MelbourneDeveloper"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MelbourneDeveloper.png" alt="Christian Findlay" title="Christian Findlay" /></a>
<a href="https://github.com/augustoproiete"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/augustoproiete.png" alt="C. Augusto Proiete" title="C. Augusto Proiete" /></a>
<a href="https://github.com/KirillOsenkov"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KirillOsenkov.png" alt="Kirill Osenkov" title="Kirill Osenkov" /></a>
<a href="https://github.com/MFB-Technologies-Inc"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MFB-Technologies-Inc.png" alt="MFB Technologies, Inc." title="MFB Technologies, Inc." /></a>
<a href="https://github.com/aws"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/aws.png" alt="Amazon Web Services" title="Amazon Web Services" /></a>
<a href="https://github.com/sandrock"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/sandrock.png" alt="SandRock" title="SandRock" /></a>
<a href="https://github.com/davidpallmann"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/davidpallmann.png" alt="David Pallmann" title="David Pallmann" /></a></p>
<!-- sponsors.md -->
<p><a href="https://github.com/sponsors/devlooped"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/sponsor.png" alt="Sponsor this project" title="Sponsor this project" /></a>
</p>
<p><a href="https://github.com/sponsors">Learn more about GitHub Sponsors</a></p>
<!-- https://github.com/devlooped/sponsors/raw/main/footer.md -->
</section>
</div>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p class="copyright">dotnet-vs maintained by <a href="https://github.com/devlooped">devlooped</a></p>
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
</body>
</html>