|
1 | 1 | ---
|
2 | 2 | title: 'Configure projects to target platforms'
|
3 | 3 | description: Set up your applications to target different platforms, including the ARM64 platform in Visual Studio with the Configuration Manager.
|
4 |
| -ms.date: 11/01/2023 |
| 4 | +ms.date: 05/06/2024 |
5 | 5 | ms.subservice: compile-build
|
6 | 6 | ms.topic: how-to
|
7 | 7 | helpviewer_keywords:
|
@@ -49,9 +49,9 @@ For .NET development, .NET 6 or later is required to target the Arm64 platform.
|
49 | 49 |
|
50 | 50 | 1. On the menu bar, choose **Build** > **Configuration Manager**.
|
51 | 51 |
|
52 |
| -1. In the **Active solution platform** list, choose a platform for the solution to target, and then choose the **Close** button. |
| 52 | +1. In the **Active solution platform** list, choose a platform for the solution to target, and then choose the **Close** button. |
53 | 53 |
|
54 |
| - 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 targeting that platform. |
| 54 | + 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. |
55 | 55 |
|
56 | 56 | The **New Solution Platform** dialog box appears.
|
57 | 57 |
|
@@ -100,6 +100,10 @@ Performing this task varies based on the programming language you're using. See
|
100 | 100 |
|
101 | 101 | - For C# projects, see [Build page, Project Designer (C#)](../ide/reference/build-page-project-designer-csharp.md).
|
102 | 102 |
|
| 103 | +### Prefer 32-bit setting |
| 104 | + |
| 105 | +The **Prefer 32-bit** setting in the **Build** page of the project designer for .NET Framework 4.5 or later projects handles the case where you're building the `AnyCPU` configuration, but you want your application to run in 32-bit mode when it's executed on platforms that support both 32-bit and 64-bit modes. If you enable the checkbox, the `PlatformTarget` build property is set to `anycpu32bitpreferred`. See comments on the [PlatformTarget](/dotnet/csharp/language-reference/compiler-options/output#platformtarget) for C# and [/platform](/dotnet/visual-basic/reference/command-line-compiler/platform) for Visual Basic. |
| 106 | + |
103 | 107 | ### Manually editing the project file
|
104 | 108 |
|
105 | 109 | Sometimes, you need to manually edit the project file for some custom configuration. An example is when you have conditions that can't be specified in the IDE, such as a reference that is different for two different platforms, or an assembly that must be registered for a particular platform in order to expose it to COM. The tool that processes the project file is [MSBuild](../msbuild/msbuild.md).
|
|
0 commit comments