Skip to content

Commit 56bb0c6

Browse files
committed
Merge branch 'main' of github.com:MicrosoftDocs/visualstudio-docs-pr into msbuild-3283
2 parents 74382a6 + 0b411e4 commit 56bb0c6

File tree

95 files changed

+4722
-4411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+4722
-4411
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2523,6 +2523,16 @@
25232523
"redirect_url": "/troubleshoot/developer/visualstudio/ide/troubleshooting-docker-errors",
25242524
"redirect_document_id": false
25252525
},
2526+
{
2527+
"source_path": "docs/test/using-microsoft-visualstudio-testtools-unittesting-members-in-unit-tests.md",
2528+
"redirect_url": "/dotnet/core/testing/unit-testing-mstest-writing-tests-attributes",
2529+
"redirect_document_id": false
2530+
},
2531+
{
2532+
"source_path": "docs/test/using-the-assert-classes.md",
2533+
"redirect_url": "/dotnet/core/testing/unit-testing-mstest-writing-tests-assertions",
2534+
"redirect_document_id": false
2535+
},
25262536
{
25272537
"source_path": "docs/test/analyzing-coded-ui-tests-using-coded-ui-test-logs.md",
25282538
"redirect_url": "/previous-versions/visualstudio/visual-studio-2017/test/analyzing-coded-ui-tests-using-coded-ui-test-logs",

docs/containers/docker-compose-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ In addition, the property `DockerComposeProjectPath` in a `.csproj` or `.vbproj`
5050

5151
## Example
5252

53-
If you change the location of the `docker-compose` files, by setting `DockerComposeBaseFilePath` to a relative path, then you also need to make sure that the build context is changed so that it references the solution folder. For example, if your `docker-compose` file is a folder called *DockerComposeFiles*, then Docker Compose file should set the build context to ".." or "../..", depending on where it's relative to the solution folder.
53+
If you change the location of the `docker-compose` files, by setting `DockerComposeBaseFilePath` to a relative path, then you also need to make sure that the build context is changed so that it references the solution folder. For example, if your `docker-compose` file is a folder called *DockerComposeFiles*, then Docker Compose file should set the build context to ".." or "../..", depending on where it is relative to the solution folder.
5454

5555
```xml
5656
<?xml version="1.0" encoding="utf-8"?>

docs/debugger/debugger-cannot-display-source-code-or-disassembly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This error reads:
2727

2828
- If you are debugging script, you may have hit a breakpoint while there were no threads in your program. Choose **Step** or **Continue** from the **Debug** menu to resume debugging.
2929

30-
- Security considerations may have prevented the debugger from reading stack, thread, register, and other context information from the program you are debugging. This is most likely to happen if you are debugging a Web application and don't have the right permission to access the virtual directory. Set security for the virtual directory to Anonymous and try again.
30+
- Security considerations may have prevented the debugger from reading stack, thread, register, and other context information from the program you are debugging. This is most likely to happen if you are debugging a Web application and don't have the right permission to access the virtual directory. Set security for the virtual directory to Anonymous and try again. For more information about setting this in IIS, see [IIS](/aspnet/core/security/authentication/windowsauth?tabs=visual-studio#iis).
3131

3232
## Related content
3333
- [Debugging in Visual Studio](../debugger/index.yml)

docs/debugger/watch-and-quickwatch-windows.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Set a watch on variables and expressions
33
description: While you debug, see variables and expressions in Watch and QuickWatch. Watch can display several variables, QuickWatch only one, and only while in break.
4-
ms.date: 04/25/2024
4+
ms.date: 02/10/2025
55
ms.topic: how-to
66
f1_keywords:
77
- "vs.debug.quickwatch"
@@ -133,11 +133,11 @@ To make your search more or less thorough, use the **Search Deeper** dropdown at
133133
>[!NOTE]
134134
> This feature is supported in .NET Core 3.0 or higher.
135135
136-
You can quickly inspect objects by their properties in the Watch window with the **Pinnable Properties** tool. To use this tool, hover over a property and select the pin icon that appears or right-click and select the **Pin Member as Favorite** option in the resulting context menu. This bubbles up that property to the top of the object’s property list, and the property name and value is displayed in the **Value** column. To unpin a property, select the pin icon again or select the **Unpin Member as Favorite** option in the context menu.
136+
You can quickly inspect objects by their properties in the Watch window with the **Pinnable Properties** tool. To use this tool, hover over a property and select the pin icon that appears or right-click and select the **Pin Member as Favorite** option in the resulting context menu. This action bubbles up that property to the top of the object’s property list, and the property name and value is displayed in the **Value** column. To unpin a property, select the pin icon again or select the **Unpin Member as Favorite** option in the context menu.
137137

138138
![Screenshot of Pin properties in the Watch window.](../debugger/media/basic-pin-watch.gif "Pin properties in the Watch window")
139139

140-
You can also toggle property names and filter out non-pinned properties when viewing the object’s property list in the Watch window. You can access both options by selecting the buttons in the toolbar above the watch window.
140+
You can also toggle property names and filter out non-pinned properties when viewing the object’s property list in the Watch window. You can access both options by selecting the buttons in the toolbar above the watch window.
141141

142142
::: moniker-end
143143

@@ -149,7 +149,7 @@ To refresh the value, select the refresh icon, or press the spacebar. The debugg
149149

150150
Hover over the refresh icon or see the **Value** column for the reason the expression wasn't evaluated. Reasons include:
151151

152-
- An error occurred as the expression was being evaluated, as in the previous example. A timeout might occur, or a variable might be out of scope.
152+
- An error occurred as the expression was being evaluated, as in the previous example. A time-out might occur, or a variable might be out of scope.
153153

154154
- The expression has a function call that could trigger a side effect in the app. See [Expression side effects](#bkmk_sideEffects).
155155

@@ -209,7 +209,7 @@ For C# only, when evaluation of properties or implicit function calls is turned
209209
Sometimes you want to observe the behavior of a specific object. For example, you might want to track an object referred to by a local variable after that variable has gone out of scope. In C# and Visual Basic, you can create Object IDs for specific instances of reference types, and use them in the **Watch** window and in breakpoint conditions. The Object ID is generated by the common language runtime (CLR) debugging services and associated with the object.
210210

211211
> [!NOTE]
212-
> Object IDs create weak references that don't prevent the object from being garbage collected. They are valid only for the current debugging session.
212+
> Object IDs create weak references that don't prevent the object from being garbage collected. They're valid only for the current debugging session.
213213

214214
In the following code, the `MakePerson()` method creates a `Person` using a local variable:
215215

@@ -353,10 +353,16 @@ To observe the `a` variable,
353353

354354
1. To add the variable or expression from **QuickWatch** to the **Watch** window, select **Add Watch**.
355355

356-
1. Select **Close** to close the **QuickWatch** window. (**QuickWatch** is a modal dialog, so you can't continue debugging as long as it is open.)
356+
1. Select **Close** to close the **QuickWatch** window. (**QuickWatch** is a modal dialog, so you can't continue debugging as long as it's open.)
357357

358358
1. Continue debugging. You can observe the variable in the **Watch** window.
359359

360+
::: moniker range=">= vs-2022"
361+
## Get AI assistance
362+
363+
If you have [Copilot](../ide/visual-studio-github-copilot-extension.md), you can get AI assistance while you're looking at variables in the Watch windows. Right-click on a variable and use the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. In this scenario, Copilot already knows the context for your question, so you don't need to provide context yourself in chat. For more information, see [Debug with Copilot](../debugger/debug-with-copilot.md).
364+
::: moniker-end
365+
360366
## Related content
361367
- [What is debugging?](../debugger/what-is-debugging.md)
362368
- [Debugging techniques and tools](../debugger/write-better-code-with-visual-studio.md)

docs/deployment/application-deployment-prerequisites.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Application Deployment Prerequisites"
33
description: Learn about the deployment prerequisites for your applications, including using the Prerequisites Dialog Box and bootstrapper packages.
4-
ms.date: "09/23/2021"
4+
ms.date: "02/10/2025"
55
ms.topic: "conceptual"
66
dev_langs:
77
- "FSharp"
@@ -21,16 +21,16 @@ ms.subservice: deployment
2121
---
2222
# Application deployment prerequisites (Windows desktop)
2323

24-
To have your Windows desktop application install and run successfully, first install all components upon which your application is dependent onto the target computer. For example, most applications created using Visual Studio have a dependency on the .NET Framework. In this case, the correct version of the common language runtime must be present on the destination computer before the application is installed.
24+
To successfully install and run a Windows desktop application, the components upon which your application depends must be installed onto the target computer. This article provides an overview of the installation of required components for [ClickOnce](../deployment/clickonce-security-and-deployment.md) and Windows Installer [Setup](../deployment/deploying-applications-services-and-components.md#create-an-installer-package-windows-desktop-1) projects.
2525

26-
You can select these prerequisites in the **Prerequisites Dialog Box** and install the .NET Framework and any other redistributable as a part of your installation. This practice is known as *bootstrapping*. Visual Studio generates a Windows executable program named *Setup.exe*, also known as a *bootstrapper*. The bootstrapper is responsible for installing these prerequisites before your application runs. For more information about selecting these prerequisites, see [Prerequisites dialog box](../ide/reference/prerequisites-dialog-box.md).
26+
You can select required components, called prerequisites, such as the .NET Framework and any other redistributable as a part of your installation. The process of installing prerequisites is known as *bootstrapping*. Visual Studio generates a Windows executable program named *Setup.exe*, also known as a *bootstrapper*. The bootstrapper is responsible for installing these prerequisites before your application runs. For more information about selecting these prerequisites, see [Prerequisites dialog box](../ide/reference/prerequisites-dialog-box.md).
2727

28-
Each prerequisite is a bootstrapper package. A bootstrapper package is a group of directories and files containing the manifest files that describe how the prerequisites are installed. If your application prerequisites are not listed in the **Prerequisite Dialog Box**, you can create custom bootstrapper packages and add them to Visual Studio. Then you can select the prerequisites in the **Prerequisites Dialog Box**. For more information, see [Create bootstrapper packages](../deployment/creating-bootstrapper-packages.md).
28+
A *bootstrapper package* is a group of directories and files containing the manifest files that describe how the prerequisites are installed. Each prerequisite that appears in the **Prerequisites Dialog Box** is a bootstrapper package. If your application prerequisites aren't listed in the **Prerequisite Dialog Box**, you can create custom bootstrapper packages and add them to Visual Studio. Then you can select the prerequisites in the **Prerequisites Dialog Box**. For more information, see [Create bootstrapper packages](../deployment/creating-bootstrapper-packages.md).
2929

30-
By default, bootstrapping is enabled for both Windows Installer deployment (by using Setup projects in Visual Studio) and ClickOnce deployment. The bootstrapper generated for Windows Installer deployment is not signed, but in ClickOnce deployment, the bootstrapper is signed. You can disable bootstrapping for a component, but you should do so only if you are sure that the correct version of the component is already installed on all target computers.
30+
By default, bootstrapping is enabled for both Windows Installer deployment (by using Setup projects in Visual Studio) and ClickOnce deployment. The bootstrapper generated for Windows Installer deployment isn't signed, but in ClickOnce deployment, the bootstrapper is signed. You can disable bootstrapping for a component, but you should do so only if you're sure that the correct version of the component is already installed on all target computers.
3131

3232
## Bootstrapping and ClickOnce deployment
33-
Before installing an application on a client computer, ClickOnce examines the client to ensure that it has the requirements specified in the application manifest. These include the following requirements:
33+
Before installing an application on a client computer, ClickOnce examines the client to ensure that it has the requirements specified in the application manifest. These requirements include the following:
3434

3535
- The minimum required version of the common language runtime, which is specified as an assembly dependency in the application manifest.
3636

@@ -45,17 +45,12 @@ By default, bootstrapping is enabled for both Windows Installer deployment (by u
4545
4646
If you use Visual Studio and ClickOnce to deploy your application, the bootstrapper packages that are selected by default depend on the version of the .NET Framework in the solution. However, if you change the target .NET Framework version, you must update the options in the **Prerequisites Dialog Box** manually.
4747

48-
|Target .NET Framework|Selected Bootstrapper Packages|
49-
|---------------------------|------------------------------------|
50-
|.NET Framework 4 Client Profile|.NET Framework 4 Client Profile<br /><br /> Windows Installer 3.1|
51-
|.NET Framework 4|.NET Framework 4<br /><br /> Windows Installer 3.1|
52-
5348
With ClickOnce deployment, the *Publish.htm* page generated by the ClickOnce Publish Wizard points either to a link that installs only the application, or to a link that installs both the application and the bootstrapped components.
5449

5550
If you generate the bootstrapper by using the ClickOnce Publish Wizard or the Publish Page in Visual Studio, the *Setup.exe* is automatically signed. However, if you want to use your customer's certificate to sign the bootstrapper, you can sign the file later.
5651

5752
## Bootstrapping and MSBuild
58-
If you do not use Visual Studio, but rather compile your applications on the command line, you can create the ClickOnce bootstrapping application by using a Microsoft Build Engine (MSBuild) task. For more information, see [GenerateBootstrapper task](../msbuild/generatebootstrapper-task.md).
53+
If you don't use Visual Studio, but rather compile your applications on the command line, you can create the ClickOnce bootstrapping application by using a Microsoft Build Engine (MSBuild) task. For more information, see [GenerateBootstrapper task](../msbuild/generatebootstrapper-task.md).
5954

6055
As an alternative to bootstrapping, you can pre-deploy components using an electronic software distribution system, such as Microsoft Systems Management Server (SMS).
6156

@@ -73,7 +68,7 @@ By default, bootstrapping is enabled for both Windows Installer deployment (by u
7368
| **-homesite=** `true` **&#124;** `false` | When `true`, downloads the dependencies from the preferred location on the vendor's site. This setting overrides the **-componentsurl** setting. When `false`, downloads the dependencies from the URL specified by **-componentsurl**. |
7469

7570
## Operating system support
76-
The Visual Studio bootstrapper is not supported on Windows Server 2008 Server Core or Windows Server 2008 R2 Server Core, as they provide a low-maintenance server environment with limited functionality. For example, the Server Core installation option only supports the .NET Framework 3.5 Server Core profile, which cannot run the Visual Studio features that depend on the full .NET Framework.
71+
The Visual Studio bootstrapper isn't supported on Windows Server 2008 Server Core or Windows Server 2008 R2 Server Core, as they provide a low-maintenance server environment with limited functionality. For example, the Server Core installation option only supports the .NET Framework 3.5 Server Core profile, which can't run the Visual Studio features that depend on the full .NET Framework.
7772

7873
## Related content
7974
- [Choose a ClickOnce deployment strategy](../deployment/choosing-a-clickonce-deployment-strategy.md)

docs/deployment/index.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ landingContent:
6060
- text: ClickOnce
6161
url: quickstart-deploy-using-clickonce-folder.md
6262
- text: Installer package
63-
url: deploying-applications-services-and-components.md#create-an-installer-package-windows-desktop
63+
url: deploying-applications-services-and-components.md#create-an-installer-package-windows-desktop-1
6464
- linkListType: how-to-guide
6565
links:
6666
- text: Package a desktop app for Windows Store
@@ -74,7 +74,7 @@ landingContent:
7474
- text: ClickOnce
7575
url: how-to-publish-a-clickonce-application-using-the-publish-wizard.md
7676
- text: Installer package
77-
url: deploying-applications-services-and-components.md#create-an-installer-package-windows-desktop
77+
url: deploying-applications-services-and-components.md#create-an-installer-package-windows-desktop-1
7878

7979
# Card
8080
- title: Deploy to Azure

docs/deployment/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
- name: Visual Studio Installer Projects Extension and .NET 6.0
227227
href: installer-projects-net-core.md
228228
- name: Create an installer package (Windows desktop)
229-
href: deploying-applications-services-and-components.md#create-an-installer-package-windows-desktop
229+
href: deploying-applications-services-and-components.md#create-an-installer-package-windows-desktop-1
230230
- name: Custom bootstrapper
231231
items:
232232
- name: Application deployment prerequisites

docs/extensibility/visualstudio.extensibility/editor/editor.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Extensions can contribute new CodeLenses to the Visual Studio editor. A CodeLens
4343

4444
For detailed walkthrough of how to provide your own CodeLens with your extension, refer to [Extending Visual Studio editor with a new CodeLens](./walkthroughs/codelens.md)
4545

46+
### Taggers
47+
Extensions can contribute new taggers to the Visual Studio editor. Taggers are used to associate data with spans of text, such data is consumed by other Visual Studio features (E.g., CodeLens).
48+
49+
For detailed walkthrough of how to provide your own taggers with your extension, refer to [Extending Visual Studio editor with a new tagger](./walkthroughs/taggers.md)
50+
4651
## Related content
4752

4853
Learn about the editor interfaces and types at [Editor concepts](editor-concepts.md).

0 commit comments

Comments
 (0)