Skip to content

Commit eafc6ec

Browse files
committed
Merge branch 'regexp' of github.com:ghogen/vsdocs into regexp
2 parents 350208e + b5d1e7c commit eafc6ec

File tree

136 files changed

+1289
-328
lines changed

Some content is hidden

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

136 files changed

+1289
-328
lines changed

docs/azure/vs-azure-tools-azure-project-create.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ This section walks you through creating an Azure cloud service project in Visual
2828

2929
![Give the project a name](./media/vs-azure-tools-azure-project-create/vs-2019/new-project-cloud-service-2.png)
3030

31-
3231
1. In the **New Microsoft Azure Cloud Service** dialog, select the roles that you want to add, and choose the right arrow button to add them to your solution.
3332

3433
![Select new Azure cloud service roles](./media/vs-azure-tools-azure-project-create/new-cloud-service.png)

docs/code-quality/code-metrics-values.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ The following list shows the code metrics results that Visual Studio calculates:
4747
- **Lines of Executable code** - Indicates the approximate number of executable code lines or operations. This is a count of number of operations in executable code. This metric is available starting in Visual Studio 2019 version 16.4 and Microsoft.CodeAnalysis.Metrics (2.9.5). The value is typically a close match to the previous metric, **Lines of Code**, which is the MSIL-instruction-based metric used in legacy mode.
4848

4949

50-
5150
## Anonymous methods
5251

5352
An *anonymous method* is just a method that has no name. Anonymous methods are most frequently used to pass a code block as a delegate parameter. Code metrics results for an anonymous method that's declared in a member, such as a method or accessor, are associated with the member that declares the method. They are not associated with the member that calls the method.

docs/code-quality/how-to-generate-code-metrics-data.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ The new command-line code metrics tool computes metrics even in the presence of
255255
Starting in Visual Studio 2019 version 16.4 and Microsoft.CodeAnalysis.Metics (2.9.5), `SourceLines` and `ExecutableLines` replace the previous `LinesOfCode` metric. For descriptions of the new metrics, see [Code metrics values](../code-quality/code-metrics-values.md). The `LinesOfCode` metric is available in legacy mode.
256256

257257

258-
259258
Other metrics such as `CyclomaticComplexity` and `MaintainabilityIndex` use the same formulas as previous versions of *Metrics.exe*, but the new tool counts the number of `IOperations` (logical source instructions) instead of intermediate language (IL) instructions. The numbers will be slightly different to those generated by the Visual Studio IDE and by previous versions of *Metrics.exe*.
260259

261260
## See also

docs/code-quality/in-source-suppression-overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ You can suppress violations in code using a preprocessor directive, the [#pragma
4646

4747
:::image type="content" source="media/vs-2019/suppress-diagnostic-from-editor-attribute.png" alt-text="Suppress diagnostic from quick actions menu using attribute":::
4848

49-
5049
- From the **Error List**
5150

5251
Select the rules you want to suppress, and then right-click and select **Suppress** > **In Source**.

docs/containers/container-tools-react.md

Lines changed: 108 additions & 83 deletions
Large diffs are not rendered by default.

docs/containers/edit-and-refresh.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ You can run and debug your apps in Linux or Windows containers running on your l
1919

2020
This article illustrates how to use Visual Studio to start an app in a local Docker container, make changes, and then refresh the browser to see the changes. This article also shows you how to set breakpoints for debugging for containerized apps. Supported project types include web app, console app, and Azure Function targeting .NET Framework and .NET Core. The examples presented in this article, are a project of type ASP.NET Core Web App and a project of type Console App (.NET Framework).
2121

22-
2322
If you already have a project of a supported type, Visual Studio can create a Dockerfile and configure your project to run in a container. See [Container Tools in Visual Studio](overview.md).
2423

2524
## Prerequisites
Loading
Loading
Loading
Loading

docs/containers/overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ With Service Fabric tools in Visual Studio, you can develop and debug for Azure
197197

198198
Visual Studio 2019 and later support developing containerized microservices using Windows containers and Service Fabric orchestration.
199199

200-
201200
For a detailed tutorial, see
202201
[Tutorial: Deploy a .NET application in a Windows container to Azure Service Fabric](/azure/service-fabric/service-fabric-host-app-in-a-container).
203202

docs/data-tools/add-new-data-sources.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ ms.workload:
2424
> [!NOTE]
2525
> The features described in this article apply to .NET Framework Windows Forms and WPF development. The features are not supported for .NET Core development, for both WPF and Windows Forms.
2626
27-
2827
In the context of .NET data tools in Visual Studio, the term *data source* refers to .NET objects that connect to a data store and make the data available to a .NET application. The Visual Studio designers can consume the output of the data source to generate the boilerplate code that binds the data to forms when you drag and drop database objects from the **Data Sources** window. This kind of data source can be:
2928

3029
- A class in an Entity Framework model that is associated with some kind of database.

docs/data-tools/how-to-add-update-or-remove-a-wcf-data-service-reference.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ For .NET Framework projects, *service reference* enables a project to access one
2626

2727
For .NET Core projects, you can use the **Connected Services** node in **Solution Explorer** to access the **Microsoft WCF Web Service Reference Provider**, which lets you manage Windows Communication Foundation (WCF) data service references.
2828

29-
3029
[!INCLUDE[note_settings_general](../data-tools/includes/note_settings_general_md.md)]
3130

3231
## Prerequisites
@@ -87,7 +86,6 @@ The WCF tools are not installed with the .NET workload; use the Visual Studio In
8786

8887
A service client (proxy) is generated, and metadata that describes the service is added to the *app.config* file.
8988

90-
9189
### To add a reference to a service in the current solution (.NET Framework projects)
9290

9391
1. In **Solution Explorer**, right-click the name of the project to which you want to add the service, and then click **Add Service Reference**.

docs/debugger/create-custom-visualizers-of-data.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ In the debugger side code, edit the <xref:System.Diagnostics.DebuggerVisualizerA
111111

112112
The debuggee side code contains the object source that gets visualized. The data object can override methods of <xref:Microsoft.VisualStudio.DebuggerVisualizers.VisualizerObjectSource>. A debuggee side DLL is necessary if you want to create a standalone visualizer.
113113

114-
115114
In the debuggee-side code:
116115

117116
- To let the visualizer edit data objects, the object source must inherit from from <xref:Microsoft.VisualStudio.DebuggerVisualizers.VisualizerObjectSource> and override the `TransferData` or `CreateReplacementObject` methods.

docs/debugger/debug-live-azure-applications.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ In this tutorial, you will:
3737
If it's not already installed, install [Visual Studio 2019](https://visualstudio.microsoft.com/downloads). If you're updating from a previous Visual Studio installation, run the Visual Studio Installer and check the Snapshot Debugger component in the **ASP.NET and web development workload**.
3838

3939

40-
4140
* Basic or higher Azure App Service plan.
4241

4342
* Snapshot collection is available for the following web apps running in Azure App Service:
@@ -65,7 +64,6 @@ In this tutorial, you will:
6564
> [!NOTE]
6665
> (Visual Studio 2019 version 16.2 and above) Snapshot Debugger has enabled Azure cloud support. Make sure that both the Azure resource and Azure Storage account you select are from the same cloud. Please contact your Azure administrator if you have questions about your enterprise's [Azure compliance](https://azure.microsoft.com/overview/trusted-cloud/) configurations.
6766
68-
6967
Visual Studio is now in snapshot debugging mode.
7068
![Snapshot debugging mode](../debugger/media/snapshot-message.png)
7169

docs/debugger/getting-started-with-the-debugger-cpp.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ If you need to install the workload but already have Visual Studio, go to **Tool
5353

5454
First, you'll create a C++ console application project. The project type comes with all the template files you'll need, before you've even added anything!
5555

56-
5756
1. Open Visual Studio.
5857

5958
If the start window is not open, choose **File** > **Start Window**.
@@ -78,7 +77,6 @@ First, you'll create a C++ console application project. The project type comes w
7877

7978
Visual Studio opens your new project.
8079

81-
8280
## Create the application
8381

8482
1. In *get-started-debugging.cpp*, replace all of the default code with the following code instead:

docs/debugger/graphics/getting-started-with-visual-studio-graphics-diagnostics.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ If you already have your own Direct3D app to explore Graphics Diagnostics with,
6363
Download a sample from [Direct3D Game Sample](/samples/microsoft/windows-universal-samples/simple3dgamedx/).
6464

6565

66-
6766
Make sure you can build and run the app before moving on. Choose **Build** > **Build Solution** to make sure it builds without errors. Then choose **Debug** > **Start without Debugging** (**Ctrl + F5**) to make sure it runs correctly. Depending on what machine you are testing with the tool, you may need to adjust the platform and debugging target for the sample. For example, to test against the x64 platform on your Visual Studio host machine, choose **x64** as the Solution Platform and **Local Machine** as your debugging target.
6867

6968
### 2 - Start a Graphics Diagnostics session

docs/debugger/how-to-debug-managed-and-native-code.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ If you have Visual Studio installed, but don't have the workloads you need, sele
6363
Press **Esc** to close the start window. Type **Ctrl + Q** to open the search box, type **Empty Project**, choose **Templates**, then choose **Empty Project** for C++. In the dialog box that appears, choose **Create**. Then, type a name like **Mixed_Mode_Debugging** and click **Create**.
6464

6565

66-
6766
If you don't see the **Empty Project** project template, go to **Tools** > **Get Tools and Features...**, which opens the Visual Studio Installer. The Visual Studio Installer launches. Choose the **Desktop development with C++** workload, then choose **Modify**.
6867

6968
Visual Studio creates the project.
@@ -135,7 +134,6 @@ If you have Visual Studio installed, but don't have the workloads you need, sele
135134
For .NET Core, choose either the recommended target framework or .NET 6, and then choose **Create**.
136135

137136

138-
139137
If you don't see the correct project template, go to **Tools** > **Get Tools and Features...**, which opens the Visual Studio Installer. Choose the correct .NET workload as described in the prerequisites, and then choose **Modify**.
140138

141139
> [!NOTE]

docs/debugger/how-to-install-a-visualizer.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ After you have created a visualizer, you must install the visualizer so that it
6565
> The procedure is different in Visual Studio 2017 and older. See the [previous version](how-to-install-a-visualizer.md?view=vs-2017&preserve-view=true) of this article.
6666
6767

68-
6968
## See also
7069
- [Create Custom Visualizers](../debugger/create-custom-visualizers-of-data.md)
7170
- [How to: Write a Visualizer](create-custom-visualizers-of-data.md)

docs/debugger/quickstart-debug-aspnet.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ The Visual Studio debugger provides many powerful features to help you debug you
2727
Press **Esc** to close the start window. Type **Ctrl + Q** to open the search box, type **asp.net**, choose **Templates**, then choose **Create new ASP.NET Core Web Application**. In the dialog box that appears, choose **Create**.
2828

2929

30-
3130
If you don't see the **ASP.NET Core Web Application** project template, go to **Tools** > **Get Tools and Features...**, which opens the Visual Studio Installer. Choose the **ASP.NET and web development** workload, then choose **Modify**.
3231

3332
Visual Studio creates the project.

docs/debugger/quickstart-debug-with-cplusplus.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ The Visual Studio debugger provides many powerful features to help you debug you
2727
Press **Esc** to close the start window. Type **Ctrl + Q** to open the search box, type **c++**, choose **Templates**, then choose **Create new Console App project**. In the dialog box that appears, choose **Create**.
2828

2929

30-
3130
If you don't see the **Windows Console Application** project template, go to **Tools** > **Get Tools and Features...**, which opens the Visual Studio Installer. The Visual Studio Installer launches. Choose the **Desktop development with C++** workload, then choose **Modify**.
3231

3332
Visual Studio creates the project.

docs/debugger/quickstart-debug-with-managed.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ The Visual Studio debugger provides many powerful features to help you debug you
3535
If you don't see the **Console App** project template for .NET Core, go to **Tools** > **Get Tools and Features...**, which opens the Visual Studio Installer. Choose the **.NET Core cross-platform development** workload, then choose **Modify**.
3636

3737

38-
3938
Visual Studio creates the project.
4039

4140
1. In *Program.cs* or *Module1.vb*, replace the following code

docs/debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ This guide explains how to set up and configure a Visual Studio ASP.NET MVC 4.5.
2929

3030
Visual Studio 2019 is required to follow the steps shown in this article.
3131

32-
3332
These procedures have been tested on these server configurations:
3433

3534
* Windows Server 2012 R2 and IIS 8 (For Windows Server 2008 R2, the server steps are different)
@@ -56,7 +55,6 @@ This article includes steps on setting up a basic configuration of IIS on Window
5655
In Visual Studio 2019, type **Ctrl + Q** to open the search box, type **asp.net**, choose **Templates**, then choose **Create new ASP.NET Web Application (.NET Framework)**. In the dialog box that appears, name the project **MyASPApp**, and then choose **Create**. Select **MVC** and choose **Create**.
5756

5857

59-
6058
2. Open the *HomeController.cs* file, and set a breakpoint in the `About()` method.
6159

6260
## <a name="bkmk_configureIIS"></a> Install and Configure IIS on Windows Server
@@ -125,7 +123,6 @@ After the app deploys successfully, it should start automatically. If the app do
125123
Choose **Edit** to edit the profile, and then choose **Settings**. Choose a **Debug** configuration, and then choose **Remove additional files at destination** under the **File Publish** options.
126124

127125

128-
129126
> [!IMPORTANT]
130127
> If you choose a Release configuration, you disable debugging in the *web.config* file when you publish.
131128
@@ -224,7 +221,6 @@ For information on running the remote debugger as a service, see [Run the remote
224221
![RemoteDBG_AttachToProcess](../debugger/media/vs-2019/remotedbg-attachtoprocess.png "RemoteDBG_AttachToProcess")
225222

226223

227-
228224
7. Click **Attach**
229225

230226
8. Open the remote computer's website. In a browser, go to **http://\<remote computer name>**.
@@ -262,7 +258,6 @@ Required ports:
262258

263259
* 4024 - Required for remote debugging from Visual Studio 2019 (see [Remote Debugger Port Assignments](../debugger/remote-debugger-port-assignments.md) for more information).
264260

265-
266261
* UDP 3702 - (Optional) Discovery port enables you to the **Find** button when attaching to the remote debugger in Visual Studio.
267262

268263
1. To open a port on Windows Server, open the **Start** menu, search for **Windows Firewall with Advanced Security**.

docs/debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ This guide explains how to set up and configure a Visual Studio ASP.NET Core, de
2828
Visual Studio 2019 is required to follow the steps shown in this article.
2929

3030

31-
3231
These procedures have been tested on these server configurations:
3332
* Windows Server 2012 R2 and IIS 8
3433
* Windows Server 2016 and IIS 10
@@ -55,7 +54,6 @@ This article includes steps on setting up a basic configuration of IIS on Window
5554
Choose either the recommended target framework or .NET 6, and then choose **Create**.
5655

5756

58-
5957
4. Open the About.cshtml.cs file and set a breakpoint in the `OnGet` method (in older templates, open HomeController.cs instead and set the breakpoint in the `About()` method).
6058

6159
## <a name="bkmk_configureIIS"></a> Install and Configure IIS on Windows Server
@@ -125,7 +123,6 @@ After the app deploys successfully, it should start automatically. If the app do
125123
Choose **Edit** to edit the profile, and then choose **Settings**. Choose a **Debug** configuration, and then choose **Remove additional files at destination** under the **File Publish** options.
126124

127125

128-
129126
> [!IMPORTANT]
130127
> If you choose a Release configuration, you disable debugging in the *web.config* file when you publish.
131128
@@ -217,7 +214,6 @@ For information on running the remote debugger as a service, see [Run the remote
217214
![RemoteDBG_AttachToProcess](../debugger/media/vs-2019/remotedbg-attachtoprocess-aspnetcore.png "RemoteDBG_AttachToProcess")
218215

219216

220-
221217
7. Click **Attach**.
222218

223219
8. Open the remote computer's website. In a browser, go to **http://\<remote computer name>**.

docs/debugger/remote-debugging-azure.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ These procedures have been tested on these server configurations:
4242
Visual Studio 2019 or later versions is required to follow the steps shown in this article.
4343

4444

45-
4645
### Network requirements
4746

4847
Debugging between two computers connected through a proxy is not supported. Debugging over a high latency or low bandwidth connection, such as dialup Internet, or over the Internet across countries is not recommended and may fail or be unacceptably slow. For a complete list of requirements, see [Requirements](../debugger/remote-debugging.md#requirements_msvsmon).
@@ -68,7 +67,6 @@ This article includes steps on setting up a basic configuration of IIS on Window
6867
Choose either the recommended target framework or .NET 6, and then choose **Create**.
6968

7069

71-
7270
1. Open the About.cshtml.cs file and set a breakpoint in the `OnGet` method (in older templates, open HomeController.cs instead and set the breakpoint in the `About()` method).
7371

7472
## Update browser security settings on Windows Server
@@ -217,7 +215,6 @@ Download the version of the remote tools that matches your version of Visual Stu
217215
![RemoteDBG_AttachToProcess](../debugger/media/vs-2019/remotedbg-attachtoprocess-aspnetcore.png "RemoteDBG_AttachToProcess")
218216

219217

220-
221218
7. Click **Attach**.
222219

223220
8. Open the remote computer's website. In a browser, go to **http://\<remote computer name>**.

docs/debugger/select-code-type-dialog-box.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ From the list provided, choose the type(s) of code you want to debug. This can b
5555
- Unity - Unity
5656
- Managed Compatibility Mode - Specifies the legacy debugger for managed code, for use typically in mixed-mode debugging with C++/CLR code (enables Edit and Continue for mixed mode) or to support extensions that targeted the legacy debugger. In most mixed-mode debugging scenarios, select **Native** and the appropriate **Managed** code types instead of Managed Compatibility Mode.
5757

58-
5958
For most scenarios, attaching multiple debuggers in the same debugging session is not supported. You may be able to do this using a second instance of Visual Studio.
6059

6160
## See also

docs/debugger/start-a-debugging-session-for-a-store-app-in-visual-studio-vb-csharp-cpp-and-xaml.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ This article describes how to start a Visual Studio debugging session for a Univ
4848
> Starting in Visual Studio 2019, UWP apps for HTML and JavaScript are no longer supported.
4949
5050

51-
5251
## <a name="BKMK_The_easy_way_to_start_debugging"></a>Start debugging from the Visual Studio toolbar
5352

5453
The easiest way to configure and start debugging is from the standard Visual Studio toolbar.

docs/debugger/walkthrough-writing-a-visualizer-in-csharp.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Follow the tasks below to create a visualizer.
4141
For the visualizer project, make sure you select a .NET Framework class library and not .NET. Although the visualizer needs to be .NET Framework, the calling app can be .NET.
4242

4343

44-
4544
After you have created the class library, you must add a reference to Microsoft.VisualStudio.DebuggerVisualizers.DLL so that you can use the classes defined there. Before you add the reference, however, you must rename some classes so that they have meaningful names.
4645

4746
### To rename Class1.cs and add Microsoft.VisualStudio.DebuggerVisualizers
@@ -174,7 +173,6 @@ In the debugger-side code, you specify the type to visualize (the object source)
174173
> If you want to easily test the visualizer using a test harness, create a .NET Framework console app. You can create a .NET console app instead, but the test harness described later is not yet supported for .NET, so you will need to install the visualizer to test it. For a .NET console app, first create the console app here, add the required DLL and project references, and then follow steps described in [Add a debuggee-side data object](#add-a-debuggee-side-data-object). For ASP.NET Core scenarios, see [Special debugger side considerations for .NET 5.0+](../debugger/create-custom-visualizers-of-data.md#special-debugger-side-considerations-for-net-50).
175174
176175

177-
178176
Now, you must add the necessary references so MyTestConsole can call MyFirstVisualizer.
179177

180178
### To add necessary references to MyTestConsole

0 commit comments

Comments
 (0)