I've been trying to do this, but I'm struggling to get the source building correctly with the preprocessor definition defined.
My current build process used Visual Studio 2019 Professional, and the C++ SDK source (v1.7.7 in this case).
- Open uasdk_src.sln in VS 2019
- For each of the 5 projects, set the Platform Toolset to VS2019 (v142), and the Windows SDK to the latest installed version (10.0)
- Set the target to Release/Win32
- Build the solution
However, if I now add the OPCUA_SUPPORT_PKI_WIN32 preprocessor definition to the Release/Win32 target for each of the 5 projects and then try to rebuild the solution, 4 of the projects are successful, but the uastack reports linking errors.