Create MSVC.zip
These steps are for installing Build Tools for Visual Studio on Windows and then packaging them up to be use inside of a Wine install on Linux or MacOS. See Project Creation for more details.
The first few steps for creating this are the same as installing Build Tools on Windows, except you have to install the tools to a different folder (add the –installPath
argument to the vs_buildtools.exe
command. This article and the rest of the set up will be expecting the folder structure set up below.
- Follow Step 1 from Microsoft's docs for installing Visual Studio 2017 to make sure you have the right system requirements to run the Build Tools or Visual Studio
- Open a
cmd
window and navigate to the location of thevs_buildtools.exe
you just downloaded. - Run the following command to install the Visual C++ workload with the
v141
platform toolset and10.0.17134.0
Windows 10 SDK. Afterwards, wait about ~5-10 minutes and you should have a folder atC:\MSVC\VC
with a bunch of stuff in it
vs_buildtools.exe –passive –wait –norestart –nocache –installPath “C:\MSVC\VC” –add Microsoft.VisualStudio.Product.BuildTools –add Microsoft.VisualStudio.Workload.VCTools –add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 –add Microsoft.VisualStudio.Component.Windows10SDK.17134 –includeRecommended
- Copy
C:\MSVC
to your desktop or somewhere else in your user space - Copy
C:\Program Files (x86)\Windows Kits
toMSVC\Kits
and delete all folders fromMSVC\Kits\10
except forbin
,Include
, andLib
. You completed folder structure should look something like the following:MSVC / VC / Common7/ DIA SDK/ Licenses/ MSBuild/ SDK/ Team Tools/ VC/ Kits / 10 / bin/ Include/ Lib/
- Zip up your
MSVC
folder and copy over to the computer with your Wine install.