lhwm-cpp-wrapper.sln is broken out of the box
When trying to build this lhwm wrapper using the provided Visual Studio project files (lhwm-wrapper.csproj, lhwm-cpp-wrapper.sln), it fails on several issues.
-
lhwm-cpp-wrapper\pch.cpp(1,1): error C1107: could not find assembly 'mscorlib.dll': ....
I managed to fix this by adding<ManagedAssembly>true</ManagedAssembly>into<PropertyGroup Label="Globals">. -
lhwm-cpp-wrapper\lhwm-cpp-wrapper.cpp(7,8): error C1107: could not find assembly 'lhwm-wrapper.dll': ....
The issue is that the output of thelhwm-wrapper.csprojis not correctly linked to the input oflhwm-cpp-wrapper.vcxproj. Whilelhwm-wrapper.csprojproducesLhwmBindingsLib.dll,lhwm-cpp-wrapper.vcxprojsearches forlhwm-wrapper.dll. So either the first or the second needs to be renamed. Additionally, the build directory must be added to the Additional Using Directories and Additional Library Directories in thelhwm-cpp-wrapper.vcxproj. -
And finally, but optionally, it would be best if there was a top-level solution file that includes both
lhwm-wrapper.csprojandlhwm-cpp-wrapper.vcxproj, and correctly sets up dependencies between those, so that they can both be build together by a single button.