Compling Audacity with ASIO on Windows 7

You don't need all the newest and fanciest Microsoft IDE's. You should just use the recommends dev tools which Audacity was build in. I'm sure this would work the same in Windows 10.

VISUAL STUDIO 2013 EXPRESS FOR WINDOWS (DESKTOP)

Visual Studio Express 2013 for Windows Desktop enables the creation of desktop apps in C#, Visual Basic, and C++, and supports Windows Presentation Foundation (WPF), Windows Forms, and Win32.

Visual Studio 2013 Express for Windows (desktop) - Online Installer
Visual Studio 2013 Express for Windows (desktop) - ISO Image (disconnected installer)
SHA-1: CE2BBFDF2234C4353F98D853A5190E8D371AEA1C

ASIO4ALL

Download and install the newest.
http://www.asio4all.com

ASIO SDK

Download the ASIO SDK and unzip it to c:\ASIOSDK2.
https://www.steinberg.net/en/company/developers.html

wxWidgets 3.0.2

Download and run the installer.
https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.2/wxMSW-3.0.2-Setup.exe

Secondly, download the source and unzip it in to c:\wxWidgets-3.0.2, the same directory the installer created.
https://github.com/wxWidgets/wxWidgets/releases/tag/v3.0.2 (Source zip)

Audacity 2.1.3

Download this and unzip it where you feel, preferable not in your Downloads or Desktop directories.
https://www.fosshub.com/Audacity.html/audacity-win-2.1.3.zip

wxWidgets_additions

Copy the contents of .\audacity-Audacity-2.1.3\win\wxWidgets_additions\wxWidgets-3.0.2 to c:\wxWidgets-3.0.2

Environmental Variables

Just go ahead and add these to the Environmental Variables.
ASIOSDK_DIR=c:\ASIOSDK2
WXWIN=c:\wxWidgets-3.0.2

Compile wxWidget
  1. Open wx_vc12.sln in VS2013 (or double click the file) located under C:\wxWidgets-3.0.2\build\msw
  2. In the menu select Build > Configuration Manager
  3. Select DLL Release
  4. Check only adv, base, core, html, net, qa, and xml in the Build column.
  5. Click Close.
  6. In the menu, run Build > Build Solution
Compile Audacity
  1. Open the Audacity Property Page
  2. Drill down to Configuration Properties > Linker > Input
  3. Add the following list of lib's to the Additional Dependencies
    wxbase30u.lib
    wxmsw30u_adv.lib
    wxmsw30u_core.lib
    wxmsw30u_html.lib
    wxmsw30u_media.lib
    wxmsw30u_qa.lib
    wxbase30u_net.lib
    wxbase30u_xml.lib
  4. Click Apply then OK
  5. I ended up commenting out wxMSWDisableSettingHighDPIAware() in AudacityApp.cpp
  6. Run Build > Rebuild Solution
Running Audacity
  1. Copy over the below list of DLLs from c:\wxWidgets\lib\ to the Release folder under the Audacity source directory. .\audacity-Audacity-2.1.3\win\Release\
  2. Double click the audacity.exe as usual. There will be a warning message about any missing DLLs.
  3. You should be able to select ASIO4ALL now.