Download a Windows 10 Development Environment VM.
Import WinDev1912Eval.ovf
into Virtualbox.
Open Settings:
-
System
- Increase base memory.
- Increase processor count.
-
Display:
- Increase video memory.
-
Audio
- Disable Audio.
Update Virtualbox Gust Additions if required.
Go to Updates & Security
, install all updates.
Clear the desktop and the taskbar.
Open Apps & Features
. Uninstall pretty much everything.
Update Visual Studio. Remove everything except the C++ dev workload, git and Python3.
If you want to use WSL, open Ubuntu and update packages. Clone the bitcoin repo etc.
Reboot.
Vcpkg is used to install build dependencies. See the Bitcoin Core MSVC build docs for more info.
Open Developer Powershell for VS 2019
:
git clone https://github.com/bitcoin/bitcoin.git
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat -disableMetrics
# hook up user-wide integration
.\vcpkg.exe integrate install
# Install Bitcoin Core dependencies
.\vcpkg.exe install --triplet x64-windows-static $(Get-Content -Path ..\bitcoin\build_msvc\vcpkg-packages.txt).split()
cd ..
# Generate Project Files
cd bitcoin\build_msvc
py -3 msvc-autogen.py
msbuild /m bitcoin.sln /p:Platform=x64 /p:Configuration=Release /t:build
Alternatively, open bitcoin\build_msvc\bitcoin.sln
in Visual Studio.
If you are asked to Retarget Projects
, choose Yes
.
Choose Release
and x64
, then Build -> Build Solution
.
The Microsoft VMs expire after 90 days.
Once everything is setup, take a VM snapshot.
Installed alongside MSVC. More info here.
<# used for inspecting binaries #>
dumpbin /headers src/bitcoind.exe
...
160 DLL characteristics
High Entropy Virtual Addresses
Dynamic base
NX compatible
Inspect a running process, more in-depth than Task Manager.
Download from Microsoft here.