Skip to content

Commit ac1b1a2

Browse files
Merge pull request #10637 from MicrosoftDocs/main638761466316183772sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 55e67b0 + 5f13af0 commit ac1b1a2

File tree

5 files changed

+75
-52
lines changed

5 files changed

+75
-52
lines changed
Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Deploy GitHub Copilot within your enterprise
33
description: Configure and deploy GitHub Copilot programmatically to existing Visual Studio instances on a client's machine within an enterprise.
4-
ms.date: 7/15/2024
4+
ms.date: 2/25/2025
55
ms.topic: conceptual
66
author: anandmeg
77
ms.author: meghaanand
@@ -13,28 +13,29 @@ ms.custom: ai-learning-hub
1313
---
1414
# Deploy GitHub Copilot to existing Visual Studio instances
1515

16-
Administrators of Visual Studio 2022 version 17.8 or above can deploy GitHub Copilot onto client workstations programmatically with an installation script, just like you deploy other [Visual Studio components](../install/workload-and-component-ids.md).
16+
Administrators of Visual Studio 2022 version 17.8 or above can deploy GitHub Copilot to client workstations programmatically using an installation script, similar to deploying other [Visual Studio components](../install/workload-and-component-ids.md).
1717

18-
This method does NOT install the GitHub Copilot chat extension.
18+
This method does NOT install the GitHub Copilot Chat extension.
1919

2020
## Prerequisites
2121

2222
To get started, you need:
2323

24-
- This section assumes that Visual Studio 2022 [version 17.8 or later](/visualstudio/releases/2022/release-history) is already installed on the client machines. If it's not, refer to the guidance in the [Visual Studio Administrators Guide](https://aka.ms/vs/admin/guide) for how to deploy Visual Studio throughout your organization.
25-
- A valid and active GitHub Copilot for Business subscription is required for the end user whose Visual Studio 2022 instance you're installing the GitHub Copilot component for.
26-
[See: Managing access for GitHub Copilot for Business in your organization.](https://docs.github.com/en/copilot/managing-copilot-business/managing-access-for-copilot-business-in-your-organization)
24+
- Visual Studio 2022 [version 17.8 or later](/visualstudio/releases/2022/release-history) installed on the client machines.
25+
Refer to the [Visual Studio Administrators Guide](https://aka.ms/vs/admin/guide) for deployment guidance.
26+
- A valid and active GitHub Copilot for Business subscription for the end user installing the GitHub Copilot component in Visual Studio.
27+
[Learn more: Managing access for GitHub Copilot for Business in your organization.](https://docs.github.com/en/copilot/managing-copilot-business/managing-access-for-copilot-business-in-your-organization)
2728

28-
Options for deploying GitHub Copilot onto client machines depend on how Visual Studio is currently installed on these machines.
29+
Options for deploying GitHub Copilot depend on how Visual Studio is currently installed on client machines.
2930

3031
## Modify an existing installation to add the GitHub Copilot component
3132

32-
Most of the time, users would either acquire Visual Studio themselves, or run a development environment setup script on their machine.
33-
To add the GitHub Copilot component to an existing installation of Visual Studio, use the installer's `modify` command from either a command line or PowerShell window.
33+
In most cases, users either install Visual Studio themselves, or set it up using a development environment setup script on their machine.
34+
To add the GitHub Copilot component to an existing Visual Studio installation, use the installer's `modify` command from either a Command Prompt or PowerShell window.
3435

35-
### Sample install instructions
36+
### Sample installation instructions
3637

37-
Make sure you're in the Visual Studio Installer directory in the command line or PowerShell window: `C:\Program Files (x86)\Microsoft Visual Studio\Installer`
38+
Ensure you're in the Visual Studio Installer directory (`C:\Program Files (x86)\Microsoft Visual Studio\Installer`) before running the command.
3839

3940
```
4041
$installDir = .\vswhere.exe -products * -version 17.8 -requires Microsoft.VisualStudio.Component.CoreEditor -property installationPath
@@ -46,23 +47,27 @@ foreach ($i in $installDir) {
4647

4748
## Deploy using a layout
4849

49-
If you're using a layout to deploy Visual Studio across your organization, you first need to add the `Component.GitHub.Copilot` component to the layout. Then, assuming the client is configured to [receive updates from the layout](../install/update-visual-studio.md#configure-source-location-of-updates), you can run a `modify` command as in the previous example to add it to the client.
50+
If you're using a layout to deploy Visual Studio across your organization, follow these steps:
5051

51-
For more information, see the [layout documentation](../install/create-a-network-installation-of-visual-studio.md#modify-the-contents-of-a-layout).
52+
1. Add the `Component.GitHub.Copilot` component to the layout.
53+
1. Ensure the client is configured to [receive updates from the layout](../install/update-visual-studio.md#configure-source-location-of-updates)
54+
1. Run a `modify` command (as shown in the previous example) to install GitHub Copilot on the client machine.
55+
56+
For more information, refer to the [layout documentation](../install/create-a-network-installation-of-visual-studio.md#modify-the-contents-of-a-layout).
5257

5358
## End user action required
5459

55-
After installing the GitHub Copilot component to the client machines, the end user will need to take the following steps to enable GitHub Copilot:
60+
After installing the GitHub Copilot component on client machines, the end user must complete the following steps to enable GitHub Copilot:
5661

57-
1. Log into the [GitHub web interface](https://github.com/settings/copilot) with the GitHub account associated with their Copilot subscription.
62+
1. Log in to the [GitHub web interface](https://github.com/settings/copilot) using the GitHub account associated with their Copilot subscription.
5863
1. Activate access by launching Visual Studio 2022 and [adding their GitHub account to the Visual Studio keychain](work-with-github-accounts.md).
5964

6065
## Related content
6166

6267
To learn more, consider exploring the following resources:
6368

64-
- [GitHub Copilot extension: Getting started](visual-studio-github-copilot-extension.md)
65-
- [GitHub Copilot Chat extension: Getting started](visual-studio-github-copilot-chat.md)
66-
- [GitHub Copilot: Compare plans](https://github.com/features/copilot)
69+
- [GitHub Copilot Completions: Getting started](visual-studio-github-copilot-extension.md)
70+
- [GitHub Copilot Chat: Getting started](visual-studio-github-copilot-chat.md)
71+
- [GitHub Copilot: Compare plans](https://github.com/features/copilot/plans)
6772
- [GitHub Copilot Trust Center](https://resources.github.com/copilot-trust-center/)
68-
- [Use command-line parameters to install, update, and manage Visual Studio](../install/use-command-line-parameters-to-install-visual-studio.md)
73+
- [Use command-line parameters to install, update, and manage Visual Studio](../install/use-command-line-parameters-to-install-visual-studio.md)

docs/ide/managing-project-and-solution-properties.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Manage project and solution properties
33
description: Manage both the project properties and the solution properties in Visual Studio for C#, Visual Basic, F#, C++, and JavaScript projects.
4-
ms.date: 09/10/2024
4+
ms.date: 02/25/2025
55
ms.topic: conceptual
66
author: anandmeg
77
ms.author: meghaanand
@@ -15,6 +15,8 @@ Projects have properties that govern many aspects of compilation, debugging, tes
1515

1616
You access project properties by right-clicking the [project node](use-solution-explorer.md#solution-explorer-ui) in **Solution Explorer** and selecting **Properties**, or by typing **properties** into the search box on the menu bar and selecting **Properties Window** from the results.
1717

18+
Most project properties are not dependent on the configuration or the platform, but some are. Learn more about [setting properties based on configurations](how-to-create-and-edit-configurations.md#set-properties-based-on-configurations).
19+
1820
::: moniker range="vs-2022"
1921

2022
:::image type="content" source="media/vs-2022/properties-from-solution-explorer-context-menu.png" alt-text="Screenshot of the Solution Explorer context menu with the Properties option highlighted.":::
@@ -105,3 +107,6 @@ Solution properties are stored in a Solution User Options (*.suo*) file. For mor
105107
## Related content
106108

107109
- [What are solutions and projects in Visual Studio?](../ide/solutions-and-projects-in-visual-studio.md)
110+
- [MSBuild Properties](../msbuild/msbuild-properties.md)
111+
- [Use properties to control build settings](../msbuild/how-to-build-the-same-source-files-with-different-options.md#use-properties-to-control-build-settings)
112+
- [Understand build configurations](understanding-build-configurations.md)
Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Admin controls for GitHub Copilot in Visual Studio
33
description: Learn about the new features for administrators in GitHub Copilot for Visual Studio that enable admins to manage Copilot effectively.
4-
ms.date: 9/12/2024
4+
ms.date: 2/25/2025
55
ms.topic: how-to
66
author: anandmeg
77
ms.author: meghaanand
@@ -14,47 +14,51 @@ ms.custom: ai-learning-hub
1414

1515
# Admin controls for GitHub Copilot
1616

17-
Visual Studio 2022 introduces new features for administrators to configure and manage GitHub Copilot for their enterprise effectively. These features provide administrators greater control over the use of Copilot within their organization. Admins can disable Copilot for individual accounts or disable it altogether, and configure content exclusion to prevent certain files from being available to Copilot in Visual Studio.
17+
Visual Studio 2022 introduces new features that enable administrators to configure and manage GitHub Copilot more effectively within their enterprise. These features provide administrators greater control over the use of Copilot within their organization. Admins can disable Copilot for individual accounts, disable it entirely, and configure content exclusion to prevent certain files from being available to Copilot in Visual Studio.
1818

1919
In this article, you learn how to:
20-
- [Disable Copilot](#disabling-copilot-for-individual-enterprise-visual-studio-accounts)
20+
- [Disable Copilot](#disabling-copilot-skus)
2121
- [Configure content exclusion](#configure-content-exclusion)
2222

23-
## Disabling Copilot for individual Enterprise Visual Studio accounts
23+
## Disabling Copilot SKUs
2424

25-
With Visual Studio version 17.10, project administrators can disable Copilot for individual accounts or disable Copilot altogether via the [Visual Studio Administrative Templates (ADMX/ADML)](https://www.microsoft.com/en-us/download/details.aspx?id=104405), ensuring that your repository is protected.
25+
With Visual Studio 2022 version 17.10 or later, project administrators can disable Copilot for individual accounts or disable it entirely using the [Visual Studio Administrative Templates (ADMX/ADML)](https://www.microsoft.com/en-us/download/details.aspx?id=104405). This helps ensure that your repository remains protected.
2626

27-
To configure and deploy these policies, you can use [Microsoft Intune](../install/administrative-templates.md#deploying-the-policies) or the [Local Group Policy Editor](#configure-copilot-group-policy) directly on the client machine.
27+
With Visual Studio 2022 version 17.13 or later, you can disable Copilot Free.
28+
29+
To configure and deploy these policies, you can use [Microsoft Intune](../install/administrative-templates.md#deploying-the-policies) or the [Local Group Policy Editor](#configure-copilot-group-policy) directly on the client machine.
2830

2931
### Configure Copilot group policy
3032

31-
1. Head over to the Microsoft Download Center and grab the Visual Studio [Group Policy Administrative Template files (ADMX/ADML)](https://www.microsoft.com/en-us/download/details.aspx?id=104405). It asks you where you want the files to be downloaded, ensure the location is `C:\Windows\PolicyDefinitions`.
33+
1. Visit the Microsoft Download Center to download the Visual Studio [Group Policy Administrative Template files (ADMX/ADML)](https://www.microsoft.com/en-us/download/details.aspx?id=104405). When prompted, ensure the files are saved to `C:\Windows\PolicyDefinitions`.
3234

33-
2. Open the **Windows Local Group Policy Editor**, Navigate to Computer Configuration > Administrative Templates > Visual Studio > **Copilot Settings** and select a group policy.
35+
2. Open the **Windows Local Group Policy Editor** and navigate to **Computer Configuration > Administrative Templates > Visual Studio > Copilot Settings**. Select a group policy.
3436

35-
:::image type="content" source="media/vs-2022/copilot-inbox/intune-group-policy.png" alt-text="Screenshot of Group Policy to block Copilot for Individuals." lightbox="media/vs-2022/copilot-inbox/intune-group-policy.png":::
37+
:::image type="content" source="media/vs-2022/copilot-inbox/intune-group-policy.png" alt-text="Screenshot of Group Policy Settings." lightbox="media/vs-2022/copilot-inbox/intune-group-policy.png":::
3638

37-
3. Once you select your group policy, configure the policy to enable or disable.
39+
3. Once you select the group policy, configure it to enable or disable Copilot as needed.
3840

39-
:::image type="content" source="media/vs-2022/copilot-inbox/copilot-for-individuals-group-poilcy.png" alt-text="Screenshot of Group Policy to block copilot for individuals." lightbox="media/vs-2022/copilot-inbox/copilot-for-individuals-group-poilcy.png":::
41+
:::image type="content" source="media/vs-2022/copilot-inbox/copilot-for-individuals-group-poilcy.png" alt-text="Screenshot of Group Policy to block Copilot for individuals." lightbox="media/vs-2022/copilot-inbox/copilot-for-individuals-group-poilcy.png":::
4042

41-
4. Restart your Visual Studio instance to pick up the new policy changes
43+
4. Restart your Visual Studio instance to apply the new policy changes.
4244

4345
## Configure content exclusion
4446

45-
Content exclusion for GitHub Copilot enables administrators to prevent certain files from being available to Copilot and keep sensitive content secure from Copilot use. You can use content exclusions to configure GitHub Copilot to ignore specific files in a [repository](https://docs.github.com/en/copilot/managing-github-copilot-in-your-organization/configuring-content-exclusions-for-github-copilot#configuring-content-exclusions-for-your-repository) or [organization](https://docs.github.com/en/copilot/managing-github-copilot-in-your-organization/configuring-content-exclusions-for-github-copilot#configuring-content-exclusions-for-your-organization). Content exclusion is only available with a GitHub Copilot Business or a GitHub Copilot Enterprise subscription.
47+
Content exclusion for GitHub Copilot enables administrators to prevent certain files from being available to Copilot and keep sensitive content secure from Copilot use. You can use content exclusions to configure GitHub Copilot to ignore specific files in a [repository](https://docs.github.com/en/copilot/managing-github-copilot-in-your-organization/configuring-content-exclusions-for-github-copilot#configuring-content-exclusions-for-your-repository) or [organization](https://docs.github.com/en/copilot/managing-github-copilot-in-your-organization/configuring-content-exclusions-for-github-copilot#configuring-content-exclusions-for-your-organization).
48+
49+
Content exclusion is available only with a GitHub Copilot Business or a GitHub Copilot Enterprise [subscriptions](https://docs.github.com/en/copilot/about-github-copilot/subscription-plans-for-github-copilot).
4650

47-
With [Visual Studio 2022 version 17.11](/visualstudio/releases/2022/release-notes), GitHub Copilot for Visual Studio will ignore excluded content. When you exclude content from Copilot, completions and chat aren't available on the affected files.
51+
With [Visual Studio 2022 version 17.11](/visualstudio/releases/2022/release-notes), GitHub Copilot for Visual Studio will ignore excluded content. When content is excluded, completions and chat aren't available for the affected files.
4852

49-
Note that Visual Studio 2022 version 17.11 only respects rules in the root repository where your solution lives, and doesn't apply rules from git submodules or for files not under a git repo.
53+
Note that Visual Studio 2022 version 17.11 respects rules only in the root repository where your solution lives, and doesn't apply rules from git submodules or for files not under a git repository.
5054

5155
### GitHub Copilot Completions in Visual Studio and content exclusions
5256

53-
- Code completions aren't available on excluded files.
57+
- Code completions aren't available for excluded files.
5458

5559
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-admin/copilot-content-exclusions-completions.png" alt-text="Screenshot of Copilot completions on an excluded file." lightbox="media/vs-2022/visual-studio-github-copilot-admin/copilot-content-exclusions-completions.png":::
5660

57-
- Excluded content isn't included in code completion suggestions in other files.
61+
- Excluded content isn't included in code completion suggestions for other files.
5862

5963
### GitHub Copilot Chat in Visual Studio and content exclusions
6064

@@ -71,3 +75,9 @@ Note that Visual Studio 2022 version 17.11 only respects rules in the root repos
7175
- Excluded content isn't included in GitHub Copilot Chat's responses.
7276

7377
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-admin/copilot-content-exclusions-chat-response.png" alt-text="Screenshot of chat's responses on excluded content." lightbox="media/vs-2022/visual-studio-github-copilot-admin/copilot-content-exclusions-chat-response.png":::
78+
79+
## Related content
80+
81+
- [GitHub Copilot settings](https://github.com/settings/copilot)
82+
- [GitHub Copilot: Compare plans](https://github.com/features/copilot/plans)
83+
- [GitHub Copilot Trust Center](https://resources.github.com/copilot-trust-center/)

0 commit comments

Comments
 (0)