forked from csoltenborn/GoogleTestAdapter
-
Notifications
You must be signed in to change notification settings - Fork 44
Development Knowledge Base
Łukasz Mendakiewicz edited this page Jul 25, 2017
·
5 revisions
Please refer to Development Knowledge Base in csoltenborn/GoogleTestAdapter repo for the baseline description. This page describes only the differences present in this fork.
To build the test adapter the following one-time setup steps need to be taken:
- Generate build files from templates.
- Obtain files dependent on Visual Studio DIA SDK.
- (Optional) Build googletest NuGet packages.
- Ensure
TestAdapterFlavor.props
is set to the desired value. - In Visual Studio's "Developer Command Prompt" execute
msbuild ResolveTTs.proj
.
The DiaResolver project has additional dependencies on DIA SDK (which is installed with Visual Studio) that need to be resolved as follows:
- Build CLR assembly for DIA SDK:
- Open Visual Studio's "Developer Command Prompt".
- Go to
GoogleTestAdapter\DiaResolver\dia2
folder. - Run
compile_typelib.ps1
(e.g. invokingpowershell -ExecutionPolicy Bypass .\compile_typelib.ps1
). -
dia2.dll
file should be generated.
- Copy
msdia140.dll
fromDIA SDK
folder in Visual Studio installation directory:-
msdia140.dll
toGoogleTestAdapter\DiaResolver\x86
folder. -
amd64\msdia140.dll
toGoogleTestAdapter\DiaResolver\x64
folder.
-
To build the Google Test NuGet packages the following steps need to be taken:
- Fetch Git submodules:
git submodule init
followed bygit submodule update
. - Restore NuGet Packages for
GoogleTestAdapter.sln
. - In Visual Studio's "Developer Command Prompt" execute in
GoogleTestNuGet
directory:powershell .\Build.ps1 -Verbose
.