Skip to content

Commit de0f6c8

Browse files
Merge pull request #14342 from Mikejo5000/mikejo-br27
Update paths for PS, debugger
2 parents 9d709bc + d9f0742 commit de0f6c8

7 files changed

+45
-7
lines changed

docs/debugger/configure-the-windows-firewall-for-remote-debugging.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ To open a port using PowerShell:
4646

4747
For Windows Firewall, you can use PowerShell commands such as [New-NetFirewallRule](/powershell/module/netsecurity/new-netfirewallrule).
4848

49+
::: moniker range="visualstudio"
50+
The following example opens port 4026 for the remote debugger on the remote computer. The port and path you need to use might be different.
51+
52+
```ps
53+
New-NetFirewallRule -DisplayName "msvsmon" -Direction Inbound -Program "Program Files\Microsoft Visual Studio\18\Enterprise\Common7\IDE\Remote Debugger\x64\msvsmon.exe" -LocalPort 4026 -Protocol TCP -Authentication Required -Action Allow
54+
```
55+
56+
::: moniker-end
57+
4958
::: moniker range="vs-2022"
5059
The following example opens port 4026 for the remote debugger on the remote computer. The port and path you need to use might be different.
5160

docs/debugger/using-the-intellitrace-stand-alone-collector.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ The **IntelliTrace stand-alone collector** lets you collect IntelliTrace diagnos
7171
2. Get the collector from the Visual Studio installation folder.
7272

7373
1. Copy IntelliTraceCollection.cab from the folder where the collector is installed, for example:
74-
74+
::: moniker range=">=visualstudio"
75+
**..\Microsoft Visual Studio\18\Enterprise\Common7\IDE\CommonExtensions\Microsoft\IntelliTrace**
76+
::: moniker-end
77+
::: moniker range="<=vs-2022"
7578
**..\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\IntelliTrace**
79+
::: moniker-end
7680

7781
or, for previous versions of Visual Studio:
7882

docs/ide/reference/command-prompt-powershell.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Command-Line Shells & Prompt For Developers
33
description: Learn about the two command-line shells for developers in Visual Studio, the Developer Command Prompt and the Developer PowerShell.
44
author: Mikejo5000
55
ms.author: mikejo
6-
ms.date: 08/06/2025
6+
ms.date: 09/23/2025
77
ms.topic: conceptual
88
helpviewer_keywords:
99
- "Visual Studio command prompt"
@@ -149,6 +149,15 @@ Since Visual Studio 2015, the Developer Command Prompt sets the `VSCMD_VER` envi
149149

150150
Search for a PowerShell script file named *Launch-VsDevShell.ps1*, or go to the Tools folder for Visual Studio, such as *%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools*. The path changes according to your Visual Studio version, edition, and installation location. After you locate the PowerShell file, run it by entering the following command at a Windows PowerShell or PowerShell 6 prompt.
151151

152+
::: moniker range="visualstudio"
153+
For Visual Studio 2022:
154+
155+
```powershell
156+
& 'C:\Program Files\Microsoft Visual Studio\18\Community\Common7\Tools\Launch-VsDevShell.ps1'
157+
```
158+
159+
::: moniker-end
160+
152161
::: moniker range="vs-2022"
153162
For Visual Studio 2022:
154163

docs/javascript/unit-testing-javascript-with-visual-studio.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The following example is based on the TypeScript React project template provided
115115
> For TypeScript, don't use the `outfile` option in *tsconfig.json*, because Test Explorer won't be able to find your unit tests. You can use the `outdir` option, but make sure that configuration files such as `package.json` and `tsconfig.json` are in the project root.
116116
117117
> [!IMPORTANT]
118-
> If the output from **Tests** in the Output window shows a `ReadOnlySpan` error during test discovery, use the following workaround for a known [MSBuild issue](https://github.com/dotnet/msbuild/issues/7873). Open the folder, *Program Files\Microsoft Visual Studio\2022\\<version\>\Common7\IDE\Extensions\TestPlatform*, and rename *System.Memory.dll* to a different name. This fix enables test discovery.
118+
> If the output from **Tests** in the Output window shows a `ReadOnlySpan` error during test discovery, use the following workaround for a known [MSBuild issue](https://github.com/dotnet/msbuild/issues/7873). For Visual Studio 2022, open the folder, *Program Files\Microsoft Visual Studio\2022\\<version\>\Common7\IDE\Extensions\TestPlatform*, and rename *System.Memory.dll* to a different name. This fix enables test discovery.
119119
120120
### Run tests (.esproj)
121121

@@ -139,10 +139,17 @@ You can run unit tests directly from the command line for your unit test framewo
139139

140140
You may also choose to run the tests from the command line using *vstest.console*. For example, you may want to use vstest.console to maintain consistency with C# unit tests, or to run in Azure DevOps. Use the following command, but replace `MyProj` with your project name.
141141

142+
::: moniker-end
143+
::: moniker range=">=visualstudio"
142144
```
143-
vstest.console .\MyProj.esproj /TestAdapterPath:"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\Microsoft\JavaScript"
145+
vstest.console .\MyProj.esproj /TestAdapterPath:"C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\IDE\Extensions\Microsoft\JavaScript"
144146
```
147+
::: moniker-end
145148

149+
::: moniker range="vs-2022"
150+
```
151+
vstest.console .\MyProj.esproj /TestAdapterPath:"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\Microsoft\JavaScript"
152+
```
146153
::: moniker-end
147154

148155
## Write unit tests for ASP.NET Core
@@ -366,7 +373,7 @@ The following example is based on the ASP.NET Core Model-View-Controller project
366373
367374
::: moniker range="vs-2022"
368375
> [!IMPORTANT]
369-
> If the output from **Tests** in the Output window shows a `ReadOnlySpan` error during test discovery, use the following workaround for a known [MSBuild issue](https://github.com/dotnet/msbuild/issues/7873). Open the folder, *Program Files\Microsoft Visual Studio\2022\\<version\>\Common7\IDE\Extensions\TestPlatform*, and rename *System.Memory.dll* to a different name. This fix enables test discovery.
376+
> If the output from **Tests** in the Output window shows a `ReadOnlySpan` error during test discovery, use the following workaround for a known [MSBuild issue](https://github.com/dotnet/msbuild/issues/7873). In Visual Studio 2022, open the folder, *Program Files\Microsoft Visual Studio\2022\\<version\>\Common7\IDE\Extensions\TestPlatform*, and rename *System.Memory.dll* to a different name. This fix enables test discovery.
370377
::: moniker-end
371378

372379
### Run tests (ASP.NET Core)

docs/profiling/profile-apps-from-command-line.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ Profiling using the Visual Studio Diagnostics CLI tools works by attaching the p
4040

4141
1. Open a command prompt and change to the directory with the collection agent executable, typically here (for Visual Studio Enterprise).
4242

43-
::: moniker range=">= vs-2022"
43+
::: moniker range=">=visualstudio"
44+
`<Visual Studio installation folder>\18\Enterprise\Team Tools\DiagnosticsHub\Collector\`
45+
::: moniker-end
46+
::: moniker range="vs-2022"
4447
`<Visual Studio installation folder>\2022\Enterprise\Team Tools\DiagnosticsHub\Collector\`
4548
::: moniker-end
4649
::: moniker range="vs-2019"

docs/test/migrate-testsettings-to-runsettings.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ ms.subservice: test-tools
1313
# Upgrade from .testsettings to .runsettings
1414

1515
You can upgrade your test configuration file from *.testsettings* to *.runsettings* with the SettingsMigrator tool that installs along with Visual Studio. Depending on your Visual Studio install location, you can find the settings migrator tool in the following path:
16-
::: moniker range=">=vs-2022"
16+
::: moniker range=">=visualstudio"
17+
`C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\IDE\Extensions\TestPlatform\SettingsMigrator.exe`
18+
::: moniker-end
19+
::: moniker range="vs-2022"
1720
`C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\TestPlatform\SettingsMigrator.exe`
1821
::: moniker-end
1922
::: moniker range="vs-2019"

docs/test/using-code-coverage-to-determine-how-much-code-is-being-tested.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ Code coverage option is available under the Test menu when you run test methods
2727
::: moniker range=">=visualstudio"
2828
>[!NOTE]
2929
> Code coverage is available in Visual Studio Enterprise, Community, and Professional editions. In Visual Studio 2022 and previous versions, the code coverage feature was limited to Visual Studio Enterprise edition.
30+
3031
::: moniker-end
3132
::: moniker range="<=vs-2022"
3233
>[!NOTE]
3334
> Code coverage is available only with Visual Studio Enterprise.
35+
3436
::: moniker-end
3537

3638
>[!NOTE]
3739
> For .NET code coverage, you can alternatively use the command-line tool, [dotnet-coverage](/dotnet/core/additional-tools/dotnet-coverage).
40+
3841
::: moniker-end
3942

4043
## Analyze code coverage

0 commit comments

Comments
 (0)