Skip to content

Commit 14e3259

Browse files
Merge pull request #14203 from MicrosoftDocs/main
Auto Publish – main to live - 2025-08-13 22:30 UTC
2 parents c5f26f2 + 509c458 commit 14e3259

14 files changed

+47
-75
lines changed

docs/ide/mcp-servers.md

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ monikerRange: '>= vs-2022'
1616
Model Context Protocol (MCP) is an open standard that enables AI models to interact with external tools and services through a unified interface. In Visual Studio, MCP support enhances GitHub Copilot's agent mode by allowing you to connect any MCP-compatible server to your agentic coding workflow. This article guides you through setting up MCP servers and using tools with agent mode in Visual Studio.
1717

1818
## Prerequisites
19-
+ [Visual Studio 2022 version 17.14](/visualstudio/releases/2022/release-history) or later.
19+
+ [Visual Studio 2022 version 17.14](/visualstudio/releases/2022/release-history) or later. The latest servicing release of 17.14 is highly recommended as MCP features are actively being added with each release.
2020

2121
## How do MCP and Visual Studio extend GitHub Copilot's agent?
2222

@@ -30,54 +30,33 @@ By standardizing this interaction, MCP eliminates the need for custom integratio
3030

3131
## Configuration example with GitHub MCP server
3232

33-
1. Create a new file: `<SOLUTIONDIR>\.mcp.json`. Using Visual Studio to edit this file is recommended so its JSON schema is automatically applied.
33+
The following walkthrough requires 17.14.9 or later.
34+
35+
1. Create a new file: `<SOLUTIONDIR>\.mcp.json` or `%USERPROFILE%\.mcp.json`. Using Visual Studio to edit this file is recommended so its JSON schema is automatically applied.
3436
2. Paste the following contents into the `.mcp.json` file
3537

3638
```json
3739
{
38-
"inputs": [
39-
{
40-
"id": "github_pat",
41-
"description": "GitHub personal access token",
42-
"type": "promptString",
43-
"password": true
44-
}
45-
],
4640
"servers": {
4741
"github": {
48-
"type": "stdio",
49-
"command": "docker",
50-
"args": [
51-
"run",
52-
"-i",
53-
"--rm",
54-
"-e",
55-
"GITHUB_PERSONAL_ACCESS_TOKEN",
56-
"ghcr.io/github/github-mcp-server"
57-
],
58-
"env": {
59-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_pat}"
60-
}
42+
"url": "https://api.githubcopilot.com/mcp/"
6143
}
6244
}
6345
}
6446
```
6547

66-
3. Get a Personal Access Token for your [GitHub Account](https://github.com/settings/personal-access-tokens)
67-
4. In Visual Studio, click the `Ask` dropdown in the GitHub Copilot Chat window, and then select `Agent`.
48+
3. Save the file, then activate the CodeLens that appears over the new server to authenticate to this server using a GitHub account.
6849

69-
:::image type="content" source="media/vs-2022/copilot-agent-mode/copilot-agent-dropdown.png" alt-text="Screenshot that shows Copilot agent mode selector." lightbox="media/vs-2022/copilot-agent-mode/copilot-agent-dropdown.png":::
50+
5. In Visual Studio, click the `Ask` dropdown in the GitHub Copilot Chat window, and then select `Agent`.
7051

71-
5. When prompted, paste your personal access token into the dialog.
72-
73-
:::image type="content" source="media/vs-2022/mcp-servers/model-context-protocol-personal-access-token.png" alt-text="Screenshot that shows entering the personal access token." lightbox="media/vs-2022/mcp-servers/model-context-protocol-personal-access-token.png":::
52+
:::image type="content" source="media/vs-2022/copilot-agent-mode/copilot-agent-dropdown.png" alt-text="Screenshot that shows Copilot agent mode selector." lightbox="media/vs-2022/copilot-agent-mode/copilot-agent-dropdown.png":::
7453

75-
6. Select the tools you'd like to use, for example, `list_issues`
54+
7. Select the tools you'd like to use, for example, `list_issues`
7655

7756
:::image type="content" source="media/vs-2022/mcp-servers/model-context-protocol-github-tools-list.png" alt-text="Screenshot that shows MCP GitHub tools." lightbox="media/vs-2022/mcp-servers/model-context-protocol-github-tools-list.png":::
7857

79-
7. Try a sample prompt: `list issues assigned to me on GitHub`
80-
8. Copilot asks for permission to use a tool made available to it by the MCP server, select **Allow** with the scope you wish to proceed with.
58+
8. Try a sample prompt: `list issues assigned to me on GitHub`
59+
9. Copilot asks for permission to use a tool made available to it by the MCP server, select **Allow** with the scope you wish to proceed with.
8160

8261
:::image type="content" source="media/vs-2022/copilot-agent-mode/copilot-agent-tool-approval.png" alt-text="Screenshot that shows the agent tools confirmation options." lightbox="media/vs-2022/copilot-agent-mode/copilot-agent-tool-approval.png":::
8362

docs/msbuild/comparing-properties-and-items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Properties are passed to tasks as attributes. Within the task, an MSBuild proper
7474

7575
Items are passed to tasks as <xref:Microsoft.Build.Framework.ITaskItem> objects. Within the task, <xref:Microsoft.Build.Framework.ITaskItem.ItemSpec%2A> represents the value of the item and <xref:Microsoft.Build.Framework.ITaskItem.GetMetadata%2A> retrieves its metadata.
7676

77-
The item list of an item type can be passed as an array of `ITaskItem` objects. Beginning with the .NET Framework 3.5, items can be removed from an item list in a target by using the `Remove` attribute. Because items can be removed from an item list, it is possible for an item type to have zero items. If an item list is passed to a task, the code in the task should check for this possibility.
77+
The item list of an item type can be passed as an array of `ITaskItem` objects. Items can be removed from an item list in a target by using the `Remove` attribute. Because items can be removed from an item list, it is possible for an item type to have zero items. If an item list is passed to a task, the code in the task should check for this possibility.
7878

7979
## Property and item evaluation order
8080

docs/msbuild/configure-tasks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ ms.subservice: msbuild
1212

1313
You can configure MSBuild targets and tasks to run out-of-process with MSBuild so that you can run tasks in contexts that differ from the one running the overall build. This can be useful when running tasks that are not compatible with 64-bit MSBuild and when targeting a different version of .NET Framework.
1414

15-
For example, you can target a 32-bit .NET Framework 2.0 application while the development computer is running on a 64-bit .NET Framework 4.5 operating system. You can also target computers that run with the .NET Framework 4 or earlier. The combination of 32- or 64-bitness and the specific .NET Framework version is known as the *target context*.
15+
For example, you can target a 32-bit .NET Framework 3.5 SP1 application while the development computer is running on a 64-bit .NET Framework 4.7.2 operating system. The combination of 32- or 64-bitness and the specific .NET Framework version is known as the *target context*.
1616

1717
## Tasks
1818

19-
MSBuild runs certain build tasks out of process to target a larger set of contexts. For example, a 32-bit MSBuild might run a build task in a 64-bit process. This is controlled by `UsingTask` arguments and `Task` parameters. The targets installed by the .NET Framework 4.5 set these arguments and parameters, and no changes are required to build applications for the various target contexts.
19+
MSBuild runs certain build tasks out of process to target a larger set of contexts. For example, a 32-bit MSBuild might run a build task in a 64-bit process. This is controlled by `UsingTask` arguments and `Task` parameters. The targets installed with MSBuild set these arguments and parameters, and no changes are required to build applications for the various target contexts.
2020

21-
If you want to create your own target context, you must set these arguments and parameters appropriately. Look in the .NET Framework 4.5 *Microsoft.Common.targets* file and the *Microsoft.Common.Tasks* file for examples. For information about how to create a custom task that can work with multiple target contexts, or how to modify existing tasks, see [How to: Configure targets and tasks](../msbuild/how-to-configure-targets-and-tasks.md).
21+
If you want to create your own target context, you must set these arguments and parameters appropriately. Look in the *Microsoft.Common.targets* file and the *Microsoft.Common.Tasks* file for examples. For information about how to create a custom task that can work with multiple target contexts, or how to modify existing tasks, see [How to: Configure targets and tasks](../msbuild/how-to-configure-targets-and-tasks.md).
2222

2323
## Errors arising from incorrect configuration
2424

docs/msbuild/customize-by-directory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ A summary of MSBuild's general approach is as follows:
126126
- For any given project, MSBuild finds the first *Directory.Build.props* upward in the solution structure, merges it with defaults, and stops scanning for more.
127127
- If you want multiple levels to be found and merged, then [`<Import...>`](../msbuild/property-functions.md#msbuild-getpathoffileabove) (shown previously) the "outer" file from the "inner" file.
128128
- If the "outer" file doesn't itself also import something above it, then scanning stops there.
129-
- Only do this if the uupper level file actual exists
129+
- Only do this if the outer file actually exists
130130

131131
Or more simply: the first *Directory.Build.props* that doesn't import anything is where MSBuild stops.
132132

docs/msbuild/generatebootstrapper-task.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -148,27 +148,22 @@ In addition to the parameters listed above, this task inherits parameters from t
148148

149149
## Example
150150

151-
The following example uses the `GenerateBootstrapper` task to install an application that must have the .NET Framework 2.0 installed as a prerequisite.
151+
The following example uses the `GenerateBootstrapper` task to install an application that must have the .NET Framework 4.8 installed as a prerequisite.
152152

153153
```xml
154-
<Project>
155-
156-
<ItemGroup>
157-
<BootstrapperFile Include="Microsoft.Net.Framework.2.0">
158-
<ProductName>Microsoft .NET Framework 2.0</ProductName>
159-
</BootstrapperFile>
160-
</ItemGroup>
161-
162-
<Target Name="BuildBootstrapper">
163-
<GenerateBootstrapper
164-
ApplicationFile="WindowsApplication1.application"
165-
ApplicationName="WindowsApplication1"
166-
ApplicationUrl="http://mycomputer"
167-
BootstrapperItems="@(BootstrapperFile)"
168-
OutputPath="C:\output" />
169-
</Target>
170-
171-
</Project>
154+
<ItemGroup>
155+
<BootstrapperFile Include="Microsoft.Net.Framework.4.8">
156+
<ProductName>.NET Framework 4.8</ProductName>
157+
</BootstrapperFile>
158+
</ItemGroup>
159+
160+
<Target Name="CustomBootstrapper">
161+
<GenerateBootstrapper
162+
ApplicationFile="MyApp.exe"
163+
BootstrapperItems="@(BootstrapperFile)"
164+
OutputPath="$(OutputPath)"
165+
ComponentsLocation="Relative" />
166+
</Target>
172167
```
173168

174169
## See also

docs/msbuild/import-element-msbuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Imports the contents of one project file into another project file.
7171

7272
## Wildcards
7373

74-
In the .NET Framework 4, MSBuild allows wildcards in the Project attribute. When there are wildcards, all matches found are sorted (for reproducibility), and then they are imported in that order as if the order had been explicitly set.
74+
MSBuild allows wildcards in the Project attribute. When there are wildcards, all matches found are sorted (for reproducibility), and then they are imported in that order as if the order had been explicitly set.
7575

7676
This is useful if you want to offer an extensibility point so that someone else can import a file without requiring you to explicitly add the file name to the importing file. For this purpose, *Microsoft.Common.Targets* contains the following line at the top of the file.
7777

docs/msbuild/itemgroup-element-msbuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ In addition to the generic `Item` element, ItemGroup allows child elements that
5858
| Element | Description |
5959
| - | - |
6060
| [Project](../msbuild/project-element-msbuild.md) | Required root element of an MSBuild project file. |
61-
| [Target](../msbuild/target-element-msbuild.md) | Starting with .NET Framework 3.5, the `ItemGroup` element can appear inside a `Target` element. For more information, see [Targets](../msbuild/msbuild-targets.md). |
61+
| [Target](../msbuild/target-element-msbuild.md) | The `ItemGroup` element can appear inside a `Target` element. For more information, see [Targets](../msbuild/msbuild-targets.md). |
6262

6363
## Example
6464

docs/msbuild/msbuild-multitargeting-overview.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ ms.subservice: msbuild
1010
---
1111
# Target multiple framework versions and platforms
1212

13-
By using MSBuild, you can compile an application to run on any one of several versions of the .NET Framework, and on any one of several system platforms. For example, you can compile an application to run on the .NET Framework 2.0 on a 32-bit platform, and compile the same application to run on the .NET Framework 4.5 on a 64-bit platform.
13+
By using MSBuild, you can compile an application to run on any one of several versions of the .NET Framework, and on any one of several system platforms. For example, you can compile an application to run on the .NET Framework 3.5 SP1 on a 32-bit platform, and compile the same application to run on the .NET Framework 4.7.2 on a 64-bit platform.
1414

1515
> [!NOTE]
1616
> This article describes an older type of multitargeting that applies to .NET Framework builds in which a project can target only one framework and only one platform at a time. In .NET Core and .NET 5 and later, you can use a newer type of multitargeting by using the `TargetFrameworks` (plural) property in a project file. When you build with `dotnet build` or similar .NET CLI commands, or with Visual Studio after reloading the project, your build uses the newer type of multitargeting, in which multiple builds occur, once for each target framework listed. See [Target frameworks](/dotnet/standard/frameworks).
1717
1818
These are some of the features of MSBuild targeting:
1919

20-
- You can develop an application that targets an earlier version of the .NET Framework, for example, versions 2.0, 3.5, or 4.
21-
22-
- You can target a framework other than the .NET Framework, for example, the Silverlight Framework.
20+
- You can develop an application that targets an earlier version of the .NET Framework, for example, version 3.5 SP1.
2321

2422
- You can target a *framework profile*, which is a predefined subset of a target framework.
2523

@@ -29,19 +27,19 @@ By using MSBuild, you can compile an application to run on any one of several ve
2927

3028
## Target framework and platform
3129

32-
A *target framework* is the version of the .NET Framework that a project is built to run on, and a *target platform* is the system platform that the project is built to run on. For example, you might want to target a .NET Framework 2.0 application to run on a 32-bit platform that is compatible with the 80x86 processor family (x86). The combination of target framework and target platform is known as the *target context*. For more information, see [Target framework and target platform](../msbuild/msbuild-target-framework-and-target-platform.md).
30+
A *target framework* is the version of the .NET Framework that a project is built to run on, and a *target platform* is the system platform that the project is built to run on. For example, you might want to target a .NET Framework 3.5 SP1 application to run on a 32-bit platform that is compatible with the 80x86 processor family (x86). The combination of target framework and target platform is known as the *target context*. For more information, see [Target framework and target platform](../msbuild/msbuild-target-framework-and-target-platform.md).
3331

3432
## Toolset (ToolsVersion)
3533

36-
A Toolset collects together the tools, tasks, and targets that are used to create the application. A Toolset includes compilers such as *csc.exe* and *vbc.exe*, the common targets file (*microsoft.common.targets*), and the common tasks file (*microsoft.common.tasks*). The 4.5 Toolset can be used to target .NET Framework versions 2.0, 3.0, 3.5, 4, and 4.5. However, the 2.0 Toolset can only be used to target the .NET Framework version 2.0. For more information, see [Toolset (ToolsVersion)](../msbuild/msbuild-toolset-toolsversion.md).
34+
A Toolset collects together the tools, tasks, and targets that are used to create the application. A Toolset includes compilers such as *csc.exe* and *vbc.exe*, the common targets file (*microsoft.common.targets*), and the common tasks file (*microsoft.common.tasks*). For more information, see [Toolset (ToolsVersion)](../msbuild/msbuild-toolset-toolsversion.md).
3735

3836
## Reference assemblies
3937

4038
The reference assemblies that are specified in the Toolset help you design and build an application. These reference assemblies not only enable a particular target build, but also restrict components and features in the Visual Studio IDE to those that are compatible with the target. For more information, see [Resolve assemblies at design time](../msbuild/resolving-assemblies-at-design-time.md).
4139

4240
## Configure targets and tasks
4341

44-
You can configure MSBuild targets and tasks to run out-of-process with MSBuild so that you can target contexts that are considerably different than the one you are running on. For example, you can target a 32-bit, .NET Framework 2.0 application while the development computer is running on a 64-bit platform with .NET Framework 4.5. For more information, see [Configure targets and tasks](../msbuild/configure-tasks.md).
42+
You can configure MSBuild targets and tasks to run out-of-process with MSBuild so that you can target contexts that are considerably different than the one you are running on. For example, you can target a 32-bit, .NET Framework 3.5 SP1 application while the development computer is running on a 64-bit platform with .NET Framework 4.7.2. For more information, see [Configure targets and tasks](../msbuild/configure-tasks.md).
4543

4644
## Troubleshooting
4745

docs/msbuild/msbuild-target-framework-and-target-platform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A project can be built to run on a *target framework*, which is a particular ver
1919

2020
A target framework is the particular version of the .NET Framework that your project is built to run on. Specification of a target framework is required because it enables compiler features and assembly references that are exclusive to that version of the framework.
2121

22-
Currently, the following versions of the .NET Framework are available for use:
22+
Currently, the following versions of the .NET Framework are available for use, although some are no longer supported by Microsoft, and some have planned future dates beyond which they will no longer be supported. For the latest support information, see [.NET Framework](/lifecycle/products/microsoft-net-framework):
2323

2424
- The .NET Framework 2.0 (included in Visual Studio 2005)
2525

0 commit comments

Comments
 (0)