You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/get-started/includes/git-source-control.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ To associate your code with Git, you start by creating a new Git repository wher
20
20
21
21
1. In the **Create a Git repository** dialog box, sign in to GitHub.
22
22
23
-
:::image type="content" source="../media/vs-2022/git-create-repo.png" alt-text="Screenshot of the Create a Git Repository dialog window where you can sign in to GitHub.":::
23
+
:::image type="content" source="../media/vs-2022/git-create-repo.png" alt-text="Screenshot of the Create a Git Repository dialog window where you create a new GitHub repository.":::
24
24
25
25
The repository name auto-populates based on your folder location. By default, your new repository is private, which means you're the only one who can access it.
26
26
@@ -29,9 +29,9 @@ To associate your code with Git, you start by creating a new Git repository wher
29
29
30
30
1. Select **Create and Push**.
31
31
32
-
After you create your repository, you see status details in the status bar.
32
+
After you create your repository, status details appear in the status bar.
33
33
34
-
:::image type="content" source="../media/vs-2022/git-new-private-repo-status-details.png" alt-text="Screenshot of the repo status bar that's below the Solution Explorer pane in Visual Studio.":::
34
+
:::image type="content" source="../media/vs-2022/git-new-private-repo-status-details.png" alt-text="Screenshot of the repo status bar located below the Visual Studio Solution Explorer pane, showing the branch name and number of outstanding changes.":::
35
35
36
36
The first icon with the arrows shows how many outgoing/incoming commits are in your current branch. You can use this icon to pull any incoming commits or push any outgoing commits. You can also choose to view these commits first. To do so, select the icon, and then select **View Outgoing/Incoming**.
Copy file name to clipboardExpand all lines: docs/linux/cmake-linux-configure.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ When you do a build:
108
108
109
109
## Choose a Linux target
110
110
111
-
When you open a CMake project folder, Visual Studio parses the *CMakeLists.txt* file and specifies a Windows target of **x86-Debug**. To target a remote Linux system, you'll change the project settings based on your Linux compiler. For example, if you're using GCC on Linux and compiling with debug info, choose: **Linux-GCC-Debug** or **Linux-GCC-Release**.
111
+
When you open a CMake project folder, Visual Studio parses the *CMakeLists.txt* file, and specifies a Windows target of **x86-Debug**. To target a remote Linux system, you'll change the project settings based on your Linux compiler. For example, if you're using GCC on Linux and compiling with debug info, choose: **Linux-GCC-Debug** or **Linux-GCC-Release**.
112
112
113
113
If you specify a remote Linux target, your source is copied to the remote system.
114
114
@@ -125,11 +125,11 @@ If you're targeting Windows Subsystem for Linux (WSL), you don't need to add a r
125
125
126
126
To target WSL, select **Manage Configurations** in the configuration dropdown in the main toolbar:

129
129
130
130
The **CMakeSettings.json** window appears.
131
131
132
-

132
+

133
133
134
134
Press **Add Configuration** (the green '+' button) and then choose **Linux-GCC-Debug** or **Linux-GCC-Release** if using GCC. Use the Clang variants if you're using the Clang/LLVM toolset. Press **Select** and then **Ctrl+S** to save the configuration.
Copy file name to clipboardExpand all lines: docs/linux/connect-to-your-remote-linux-computer.md
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,11 @@ If `ssh` isn't already set up and running on your Linux system, follow these ste
64
64
65
65
1. In the Connection Manager dialog, choose the **Add** button to add a new connection.
66
66
67
-

67
+

68
68
69
69
In either scenario, the **Connect to Remote System** window is displayed.
70
70
71
-

71
+

72
72
73
73
1. Enter the following information:
74
74
@@ -90,7 +90,7 @@ If `ssh` isn't already set up and running on your Linux system, follow these ste
90
90
91
91
If the connection fails, the entry boxes that need to be changed are outlined in red.
92
92
93
-

93
+

94
94
95
95
If you use key files for authentication, make sure the target machine's SSH server is running and configured properly.
96
96
@@ -181,7 +181,7 @@ For example: `HostKeyAlgorithms ssh-dss,ssh-rsa`
181
181
182
182
You can enable logging to help troubleshoot connection problems. On the menu bar, select **Tools > Options**. In the **Options** dialog, select **Cross Platform > Logging**:

185
185
186
186
Logs include connections, all commands sent to the remote machine (their text, exit code and execution time), and all output from Visual Studio to the shell. Logging works for any cross-platform CMake project or MSBuild-based Linux project in Visual Studio.
187
187
@@ -199,13 +199,11 @@ For example: `HostKeyAlgorithms ssh-dss,ssh-rsa`
199
199
200
200
The `rsync` command is used by both MSBuild-based Linux projects and CMake projects to [copy headers from your remote system to Windows for use by IntelliSense](configure-a-linux-project.md#remote_intellisense). When you can't enable TCP port forwarding, disable the automatic download of remote headers. To disable it, use **Tools > Options > Cross Platform > Connection Manager > Remote Headers IntelliSense Manager**. If the remote system doesn't have TCP port forwarding enabled, you'll see this error when the download of remote headers for IntelliSense begins:
201
201
202
-

203
-
204
-
202
+

205
203
206
204
`rsync` is also used by Visual Studio's CMake support to copy source files to the remote system. If you can't enable TCP port forwarding, you can use `sftp` as your remote copy sources method. `sftp` is often slower than `rsync`, but doesn't have a dependency on TCP port forwarding. You can manage your remote copy sources method with the `remoteCopySourcesMethod` property in the [CMake Settings Editor](../build/cmakesettings-reference.md#settings-for-cmake-linux). If TCP port forwarding is disabled on your remote system, you'll see an error in the CMake output window the first time it invokes `rsync`.
207
205
208
-

206
+

209
207
210
208
`gdbserver` can be used for debugging on embedded devices. If you can't enable TCP port forwarding, then you must use `gdb` for all remote debugging scenarios. `gdb` is used by default when debugging projects on a remote system.
Copy file name to clipboardExpand all lines: docs/linux/create-a-new-linux-project.md
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
title: "Create a Linux MSBuild C++ project in Visual Studio"
3
3
ms.date: "10/15/2020"
4
4
description: "Create a new MSBuild-based Linux project in Visual Studio."
5
-
ms.assetid: 5d7c1d67-bc31-4f96-8622-2b4cf91372fd
6
5
---
7
6
# Create a Linux MSBuild C++ project in Visual Studio
8
7
@@ -25,7 +24,7 @@ To create a new Linux project in Visual Studio 2017, follow these steps:
25
24
1. Select **File > New Project** in Visual Studio, or press **Ctrl + Shift + N**.
26
25
1. Select the **Visual C++ > Cross Platform > Linux** node, and then select the project type to create. Enter a **Name** and **Location**, and choose **OK**.
27
26
28
-

27
+

29
28
30
29
| Project Type | Description |
31
30
| ------------ | --- |
@@ -52,7 +51,7 @@ To create a new Linux project in Visual Studio, follow these steps:
52
51
1. In the **Search for templates** textbox, enter **Linux** to list the available templates for Linux projects.
53
52
1. Select the project type to create, for example **Console Application**, and then choose **Next**. Enter a **Name** and **Location**, and choose **Create**.
54
53
55
-

54
+

Copy file name to clipboardExpand all lines: docs/linux/deploy-run-and-debug-your-linux-project.md
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
title: "Deploy, run, and debug your Linux MSBuild C++ project in Visual Studio"
3
3
description: "Describes how to compile, execute, and debug code on the remote target from inside a MSBuild-based Linux C++ project in Visual Studio."
4
4
ms.date: "08/08/2020"
5
-
ms.assetid: f7084cdb-17b1-4960-b522-f84981bea879
6
5
ms.custom: intro-deployment
7
6
---
8
7
# Deploy, run, and debug your Linux MSBuild project
@@ -56,11 +55,11 @@ There are several ways to interact with and debug your Linux project.
56
55
57
56
When the remote target is available, you'll see it listed by either name or IP address.
58
57
59
-

58
+

60
59
61
60
If you haven't connected to the remote target yet, you'll see an instruction to use [Linux Connection Manager](connect-to-your-remote-linux-computer.md) to connect to the remote target.
62
61
63
-

62
+

64
63
65
64
1. Set a breakpoint by clicking in the left gutter of some code that you know will execute.
66
65
@@ -99,7 +98,7 @@ There are several ways to interact with and debug your Linux project.
99
98
100
99
## Debug with Attach to Process
101
100
102
-
The [Debugging](prop-pages/debugging-linux.md) property page for Visual Studio projects, and the **Launch.vs.json** settings for CMake projects, have settings that enable you to attach to a running process. If you require additional control beyond what is provided in those settings, you can place a file named `Microsoft.MIEngine.Options.xml` in the root of your solution or workspace. Here is a simple example:
101
+
The [Debugging](prop-pages/debugging-linux.md) property page for Visual Studio projects, and the **Launch.vs.json** settings for CMake projects, have settings that enable you to attach to a running process. If you require more control beyond what is provided in those settings, you can place a file named `Microsoft.MIEngine.Options.xml` in the root of your solution or workspace. Here is a simple example:
The **AttachOptionsForConnection** has most of the attributes you might need. The example above shows how to specify a location to search for additional .so libraries. The child element **ServerOptions** enables attaching to the remote process with gdbserver instead. To do that, you need to specify a local gdb client (the one shipped in Visual Studio 2017 is shown above) and a local copy of the binary with symbols. The **SetupCommands** element enables you to pass commands directly to gdb. You can find all the options available in the [LaunchOptions.xsd schema](https://github.com/Microsoft/MIEngine/blob/master/src/MICore/LaunchOptions.xsd) on GitHub.
118
+
The **AttachOptionsForConnection** has most of the attributes you might need. The example above shows how to specify a location to search for more .so libraries. The child element **ServerOptions** enables attaching to the remote process with gdbserver instead. To do that, you need to specify a local gdb client (the one shipped in Visual Studio 2017 is shown above) and a local copy of the binary with symbols. The **SetupCommands** element enables you to pass commands directly to gdb. You can find all the options available in the [LaunchOptions.xsd schema](https://github.com/Microsoft/MIEngine/blob/master/src/MICore/LaunchOptions.xsd) on GitHub.
120
119
121
120
::: moniker range=">=msvc-160"
122
121
@@ -126,13 +125,13 @@ You can separate your remote build machine from your remote debug machine for bo
126
125
127
126
By default, the remote debug machine is the same as the remote build machine (**Configuration Properties** > **General** > **Remote Build Machine**). To specify a new remote debug machine, right-click on the project in **Solution Explorer** and go to **Configuration Properties** > **Debugging** > **Remote Debug Machine**.
128
127
129
-

128
+

130
129
131
130
The drop-down menu for **Remote Debug Machine** is populated with all established remote connections. To add a new remote connection, navigate to **Tools** > **Options** > **Cross Platform** > **Connection Manager** or search for "Connection Manager" in **Quick Launch**. You can also specify a new remote deploy directory in the project's Property Pages (**Configuration Properties** > **General** > **Remote Deploy Directory**).
132
131
133
132
By default, only the files necessary for the process to debug will be deployed to the remote debug machine. You can use **Solution Explorer** to configure which source files will be deployed to the remote debug machine. When you click on a source file, you'll see a preview of its File Properties directly below the Solution Explorer.
134
133
135
-

134
+

136
135
137
136
The **Content** property specifies whether the file will be deployed to the remote debug machine. You can disable deployment entirely by navigating to **Property Pages** > **Configuration Manager** and unchecking **Deploy** for the desired configuration.
138
137
@@ -159,7 +158,7 @@ In some cases, you may require more control over your project's deployment. For
159
158
160
159
For CMake projects that target a remote Linux machine, you can specify a new remote debug machine in launch.vs.json. By default, the value of "remoteMachineName" is synchronized with the "remoteMachineName" property in CMakeSettings.json, which corresponds to your remote build machine. These properties no longer need to match, and the value of "remoteMachineName" in launch.vs.json will dictate which remote machine is used for deploy and debug.
161
160
162
-

161
+

163
162
164
163
IntelliSense will suggest all a list of all established remote connections. You can add a new remote connection by navigating to **Tools** > **Options** > **Cross Platform** > **Connection Manager** or searching for "Connection Manager" in **Quick Launch**.
Copy file name to clipboardExpand all lines: docs/linux/download-install-and-setup-the-linux-development-workload.md
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
title: "Install the C++ Linux workload in Visual Studio"
3
3
description: "How to download, install, and set up the Linux workload for C++ in Visual Studio."
4
4
ms.date: "05/03/2020"
5
-
ms.assetid: e11b40b2-f3a4-4f06-b788-73334d58dfd9
6
5
ms.custom: intro-installation
7
6
---
8
7
# Download, install, and set up the Linux workload
@@ -29,11 +28,11 @@ For any of these scenarios, the **Linux development with C++** workload is requi
29
28
30
29
1. Type "Visual Studio Installer" in the Windows search box:
31
30
32
-

31
+

33
32
34
33
1. Look for the installer under the **Apps** results and double-click it. When the installer opens, choose **Modify**, and then click on the **Workloads** tab. Scroll down to **Other toolsets** and select the **Linux development with C++** workload.
35
34
36
-

35
+

37
36
38
37
1. If you're targeting IoT or embedded platforms, go to the **Installation details** pane on the right. Under **Linux development with C++**, expand **Optional Components**, and choose the components you need. CMake support for Linux is selected by default.
0 commit comments