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
cmdwindow and navigate to the location of thevs_buildtools.exeyou just downloaded. - Run the following command to install the Visual C++ workload with the
v141platform toolset and10.0.17134.0Windows 10 SDK. Afterwards, wait about ~5-10 minutes and you should have a folder atC:\MSVC\VCwith 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:\MSVCto your desktop or somewhere else in your user space - Copy
C:\Program Files (x86)\Windows KitstoMSVC\Kitsand delete all folders fromMSVC\Kits\10except 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
MSVCfolder and copy over to the computer with your Wine install.