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/ide/how-to-configure-projects-to-target-platforms.md
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ manager: mijacobs
25
25
Visual Studio enables you to set up your application builds to target different platforms (processor architectures), including Arm64 and other platforms. You don't need to be running Visual Studio on a platform in order to build for that target platform. For more information about Arm64 support in Visual Studio, see [Visual Studio on ARM-powered devices](../install/visual-studio-on-arm-devices.md). For 64-bit platform support for .NET development, see [64-bit applications](/dotnet/framework/64-bit-apps).
26
26
27
27
> [!NOTE]
28
-
> Visual Studio 2022 runs as a 64-bit application. This is totally separate from the platforms you can target for your projects in Visual Studio. You can use any version of Visual Studio to target both 32-bit and 64-bit platforms.
28
+
> Visual Studio runs as a 64-bit application. This is totally separate from the platforms you can target for your projects in Visual Studio. You can use any version of Visual Studio to target both 32-bit and 64-bit platforms.
29
29
::: moniker-end
30
30
31
31
@@ -39,7 +39,7 @@ To target some platforms in a native C++ project, you need to install the build
39
39
For .NET development, .NET 6 or later is required to target the Arm64 platform. See [.NET Support for macOS 11 and Windows 11 for Arm64 and x64](https://github.com/dotnet/sdk/issues/22380).
40
40
:::moniker-end
41
41
42
-
:::moniker range=">=vs-2022"
42
+
:::moniker range="visualstudio"
43
43
### To configure a project to target Arm64 and other platforms
44
44
45
45
1. On the menu bar, choose **Build** > **Configuration Manager**.
@@ -52,20 +52,48 @@ For .NET development, .NET 6 or later is required to target the Arm64 platform.
52
52
53
53
1. In the **Type or select the new platform** list, choose the desired platform (processor architecture); for example, `ARM64`.
54
54
55
-

55
+

56
56
57
57
> [!NOTE]
58
58
> If you give your configuration a new name, you may have to modify the settings in the **Project Designer** to target the correct platform.
59
59
60
60
1. If you want to copy the settings from a current platform configuration, choose it, and then choose the **OK** button.
61
61
62
-

62
+

63
+
64
+
> [!NOTE]
65
+
> The **Win32** platform name is used for C++ projects, and it means **x86**. Visual Studio considers both project-level platforms and solution-level platforms, and the project platforms come from the language-specific project systems. C++ projects use **Win32** and **x64**, but the solution platforms use **x86** and **x64**. When you choose **x86** as the solution configuration, Visual Studio selects the **Win32** platform for C++ projects. To see both project-level platform and solution-level platform settings, open **Configuration Manager** and note the two platform settings. The solution-level platform is shown in the **Active solution platform** dropdown, and the table shows the project-level platform for each project.
66
+
> 
67
+
63
68
:::moniker-end
64
69
70
+
:::moniker range="vs-2022"
71
+
### To configure a project to target Arm64 and other platforms
72
+
73
+
1. On the menu bar, choose **Build** > **Configuration Manager**.
74
+
75
+
1. In the **Active solution platform** list, choose a platform for the solution to target, and then choose the **Close** button.
76
+
77
+
1. If the platform that you want doesn't appear in the **Active solution platform** list, choose **New**. After you install the tools for a particular platform, you'll be able to add the new solution and project configurations that target that platform.
78
+
79
+
The **New Solution Platform** dialog box appears.
80
+
81
+
1. In the **Type or select the new platform** list, choose the desired platform (processor architecture); for example, `ARM64`.
82
+
83
+

84
+
85
+
> [!NOTE]
86
+
> If you give your configuration a new name, you may have to modify the settings in the **Project Designer** to target the correct platform.
87
+
88
+
1. If you want to copy the settings from a current platform configuration, choose it, and then choose the **OK** button.
89
+
90
+

65
91
66
92
> [!NOTE]
67
93
> The **Win32** platform name is used for C++ projects, and it means **x86**. Visual Studio considers both project-level platforms and solution-level platforms, and the project platforms come from the language-specific project systems. C++ projects use **Win32** and **x64**, but the solution platforms use **x86** and **x64**. When you choose **x86** as the solution configuration, Visual Studio selects the **Win32** platform for C++ projects. To see both project-level platform and solution-level platform settings, open **Configuration Manager** and note the two platform settings. The solution-level platform is shown in the **Active solution platform** dropdown, and the table shows the project-level platform for each project.
68
-
> 
94
+
> 
95
+
96
+
:::moniker-end
69
97
70
98
## Target platforms in the Project Designer or Project Properties UI
0 commit comments