| 36 | |
| 37 | = Modifying the Visual Studio project file = |
| 38 | |
| 39 | Many tap-windows6 build settings come from the Visual studio project file, src\tap-windows6.vcxproj. That file is generated by buildtap.py from src\tap-windows6.vcxproj.in. |
| 40 | |
| 41 | There does not seem to be any easily available reference for vcxproj files. This means that the safest and possibly the only realistic way to modify them is by using Visual Studio itself. The Visual Studio + WDK installation process is fairly well documented [https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk here], but for sake of completeness the requirements are: |
| 42 | |
| 43 | * Visual Studio 2019 Community |
| 44 | * Install workload "Desktop Development with C++" |
| 45 | * Install component "Windows 10 SDK" |
| 46 | * Windows Driver Kit (WDK) |
| 47 | * Version must match that of "Windows 10 SDK" |
| 48 | * Copy of tap-windows6.vcxproj under src |
| 49 | * This file can be generated elsewhere with buildtap.py and copied over to the Visual Studio computer |
| 50 | |
| 51 | After you've installed the above components launch Visual Studio 2019 and open tap-windows6.vcxproj file. Then you can modify the project properties as you want using the GUI. Your changes will not affect tap-windows6.vcxproj, but will create a new file called tap-windows6.vcxproj.user. Its contents look something like this: |
| 52 | |
| 53 | {{{ |
| 54 | <?xml version="1.0" encoding="utf-8"?> |
| 55 | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 56 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 57 | <SignMode>TestSign</SignMode> |
| 58 | </PropertyGroup> |
| 59 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 60 | <SignMode>Off</SignMode> |
| 61 | </PropertyGroup> |
| 62 | </Project> |
| 63 | }}} |
| 64 | |
| 65 | Once you've figured out what the GUI does you can port those changes to tap-windows6.vcxproj.in and they will get applied to all subsequent builds. |