Introduction
In this topic we will discuss how to install https://visualstudio.microsoft.com/vs/community/ on ARM64 machine. Goal is to install VS that can build https://gitlab.com/Linaro/WindowsPerf/windowsperf project.
You will need
Visual Studio Community installed on your x64 machine - please note this installation will be one we will replicate on ARM64 machine so make sure it’s up to date and can build cross WindowsPerf project on x64.
ARM64 Windows on Arm machine with Windows 11. Please uninstall all VS 2022 Community version from the machine. You can leave “Preview” versions of VS as they will not collide with the installation.
Articles
Preparing custom VS installation
Export VS configuration to a local file
Use the Visual Studio Installer UI and:
Open the Visual Studio Installer.
On the product card, choose the More button, and then select Export configuration.
Browse to or type the location where you want to save your
.vsconfig
file, and then choose Review details.
Make sure you've got the workloads and components that you want, and then choose Export.
See https://learn.microsoft.com/en-us/visualstudio/install/import-export-installation-configurations?view=vs-2022#export-a-configuration for more details on how to export .vsconfig
file from your existing VS Community installation.
Create network installation of Visual Studio
See https://learn.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2022 for more detailed description of the process.
Download the Visual Studio bootstrapper to create the layout
Visual Studio 2022 Community |
See https://learn.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2022#download-the-visual-studio-bootstrapper-to-create-the-layout chapter Download the Visual Studio bootstrapper to create the layout for latest links.
Put .vsconfig and vs_community.exe file in one directory (not the layout directory)
>dir C:\vs_bootstrap 28/11/2023 11:35 <DIR> . 28/11/2023 11:35 <DIR> .. 28/11/2023 10:19 5,062 .vsconfig 28/11/2023 11:14 3,952,960 vs_Community.exe
Prepare directory to store VS installation layout
>mkdir D:\VSLayout
Create layout with the bootstrap tool
>cd vs_bootstrap >vs_Community.exe --layout d:\vs_native --config .vsconfig
Command will open new installer window:
and will continue with VS Community component download. Please note that d:\vs_native
will be populated with around 40 GB of data. Downloading process will take at least 15 minutes.
When process is finished you will see:
[Optional] You can verify your layout
Use below command to verify your layout:
>vs_Community.exe --layout d:\vs_native --verify
Example of successful layout verification output: