Debian Codegraph @

docs/en/reference/platforms/windows/visualstudio.md

raw
1 # Visual Studio project
2
3 <table class="host-platform-support-table">
4 <colgroup>
5 <col style="width: 11%" />
6 <col style="width: 10%" />
7 <col style="width: 7%" />
8 <col style="width: 5%" />
9 <col style="width: 6%" />
10 <col style="width: 5%" />
11 <col style="width: 5%" />
12 <col style="width: 7%" />
13 <col style="width: 11%" />
14 <col style="width: 7%" />
15 <col style="width: 10%" />
16 </colgroup>
17 <thead>
18 <tr>
19 <th colspan="11"><a href="../../../../reference/platforms">Host Platform Support</a></th>
20 </tr>
21 <tr>
22 <th colspan="2">macOS</th>
23 <th colspan="5">Windows</th>
24 <th colspan="4">Linux</th>
25 </tr>
26 <tr>
27 <th>x86‑64</th>
28 <th>arm64</th>
29 <th>x86</th>
30 <th colspan="2">x86‑64</th>
31 <th colspan="2">arm64</th>
32 <th>x86</th>
33 <th>x86‑64</th>
34 <th>arm</th>
35 <th>arm64</th>
36 </tr>
37 </thead>
38 <tbody>
39 <tr>
40 <td></td>
41 <td></td>
42 <td></td>
43 <td colspan="2">{{ ci_tested }}</td>
44 <td colspan="2"></td>
45 <td></td>
46 <td></td>
47 <td></td>
48 <td></td>
49 </tr>
50 </tbody>
51 </table>
52
53 Briefcase supports creating a full Visual Studio project for a Windows app. This project can then be used to build the stub app binary with the `briefcase build` command, or directly from Visual Studio.
54
55 You can specify the use of the Windows Visual Studio project backend by using `briefcase <command> windows visualstudio`.
56
57 Most apps will have no need to use the Visual Studio project format - the [Windows app folder][windows-app-folder] format provides everything that is required to run most Windows apps. The Visual Studio project format is useful if you need to customize the stub binary that is used to start your app.
58
59 All Windows apps, regardless of output format, use the same icon formats, have the same set of configuration and runtime options, have the same permissions, and have the same platform quirks. See [the documentation on Windows apps][windows] for more details.
60
61 ## Pre-requisites
62
63 Building the Visual Studio project requires that you install Visual Studio 2022 or later. Visual Studio 2022 Community Edition [can be downloaded for free from Microsoft](https://visualstudio.microsoft.com/vs/community/). You can also use the Professional or Enterprise versions if you have them.
64
65 Briefcase will auto-detect the location of your Visual Studio installation, provided one of the following three things are true:
66
67 1. You install Visual Studio in the standard location in your Program Files folder.
68 2. `MSBuild.exe` is on your path.
69 3. You define the environment variable `MSBUILD` that points at the location of your `MSBuild.exe` executable.
70
71 When you install Visual Studio, there are many optional components. You should ensure that you have installed the following:
72
73 - .NET Desktop Development
74 - All default packages
75 - Desktop Development with C++
76 - All default packages
77 - C++/CLI support for v143 build tools
78
79 ## Application configuration
80
81 Any configuration option specified in the `tool.briefcase.app.<appname>.windows` section of your `pyproject.toml` file will be used by the Windows Visual Studio project. To specify a setting that will *only* be used by a Visual Studio project and *not* other Windows output formats, put the setting in a `tool.briefcase.app.<appname>.windows.visualstudio` section of your `pyproject.toml`.