Select ‘Desktop development with C++’ Add following ‘Individual components’:
From ‘Compilers, build tools, and runtimes’
From ‘SDK, libraries and frameworks’
Exported config of working VS2017 setup:
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Workload.NativeDesktop",
"microsoft.visualstudio.component.debugger.justintime",
"microsoft.visualstudio.component.vc.diagnostictools",
"microsoft.visualstudio.component.vc.cmake.project",
"microsoft.visualstudio.component.vc.testadapterforboosttest",
"microsoft.visualstudio.component.vc.testadapterforgoogletest",
"microsoft.visualstudio.component.windows81sdk",
"microsoft.visualstudio.componentgroup.nativedesktop.winxp",
"microsoft.visualstudio.component.vc.atlmfc",
"microsoft.visualstudio.component.windows10sdk",
"microsoft.visualstudio.component.vc.atl.arm64.spectre",
"microsoft.visualstudio.component.vc.atlmfc.spectre",
"microsoft.visualstudio.component.vc.mfc.arm.spectre",
"microsoft.visualstudio.component.vc.runtimes.arm.spectre",
"microsoft.visualstudio.component.vc.runtimes.arm64.spectre",
"microsoft.visualstudio.component.vc.runtimes.x86.x64.spectre",
"microsoft.visualstudio.component.vc.atl.arm",
"microsoft.visualstudio.component.vc.mfc.arm",
"microsoft.visualstudio.component.vc.mfc.arm64"
]
}
Note: if you save the above config as “c:\temp\virtio-win-drivers.vsconfig”, you can use this Chocholatey command to setup VS2017 more easily:
choco install -y visualstudio2017community --package-parameters "--config c:\temp\virtio-win-drivers.vsconfig"
Chocolatey: choco install -y winfsp
Download and install Visual Studio 2015 (VS15) and also download and install Windows 8.1 WDK http://msdn.microsoft.com/en-US/windows/hardware/gg454513 and Windows 10 WDK http://go.microsoft.com/fwlink/p/?LinkId=526733.
Download and install Windows 10 SDK - https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
Download and install CPDK (Cryptographic Provider Development Kit) v8.0 available from Microsoft: https://www.microsoft.com/en-us/download/details.aspx?id=30688
[Note: After CPDK installation you need to copy the CPDK dir to C:\Program Files (x86)\Windows Kits\8.1 from C:\Program Files (x86)\Windows Kits\8.0 Because by default VS12 $WindowsSdkDir points to C:\Program Files (x86)\Windows Kits\8.1]
Download and install Windows Assessment and Deployment Kit (Windows ADK) for Windows 8.1 Update https://www.microsoft.com/en-us/download/details.aspx?id=39982
Paths hard-coded in *.bat or *.vcxproj
hard-coded path to VS14: "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
hard-coded path to DDK 7.1: "C:\winddk\7600.16385.1" (can be overriden, see below)
DDK detection:
<!-- Define the legacy DDK directory required for downlevel targets -->
<DDKINSTALLROOT Condition="'$(DDKINSTALLROOT)' == ''">C:\WINDDK\</DDKINSTALLROOT>
<DDKVER Condition="'$(DDKVER)' == ''">7600.16385.1</DDKVER>
<LegacyDDKDir>$(DDKINSTALLROOT)$(DDKVER)</LegacyDDKDir>
env version variables:
<!-- Second component of driver version -->
<_RHEL_RELEASE_VERSION_ Condition="'$(_RHEL_RELEASE_VERSION_)' == ''">6</_RHEL_RELEASE_VERSION_>
<!-- Third component of driver version -->
<_BUILD_MAJOR_VERSION_ Condition="'$(_BUILD_MAJOR_VERSION_)' == ''">101</_BUILD_MAJOR_VERSION_>
<!-- Fourth component of driver version -->
<_BUILD_MINOR_VERSION_ Condition="'$(_BUILD_MINOR_VERSION_)' == ''">58000</_BUILD_MINOR_VERSION_>
STAMPINF_DATE
SDV/DVL:
sdv/dvl do not work, but is enabled by default
SET _BUILD_DISABLE_SDV=Yes to disable
misc
pciserial and fwcfg
only inf/cat files, no sources, no comments