Build/Test Issues

vcxproj x64 issue

Started by matelich on 1,522 views

Using VS 2019 and 4.3.0.13, solution with 166 projects, mostly C#.

I've been on a mission to make our codebase usable in x64 mode with NCrunch. I made a script to replace the default platform with x64 and that's gotten me 95% functional. The next item on my list is a VS2010 C++ project being tested by a C# test app. It was building x86, so I added some default platform settings. That got it to start building x64, but now its not copying over a 3rd party lib to go with its dll.

x86 linking has:
      <AdditionalDependencies>oncrpc.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <AdditionalLibraryDirectories>$(OutDir);$(ProjectDir)..\..\..\..\ThirdParty\Oncrpc\BIN\x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>

x64 has:
      <AdditionalDependencies>oncrpc.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <AdditionalLibraryDirectories>$(OutDir);$(ProjectDir)..\..\..\..\ThirdParty\Oncrpc\BIN\x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>

When I look in the NCrunch build directory, I see ThirdParty/Oncrpc/BIN/x86 and ThirdParty/Oncrpc/BIN/x64. Both have oncrpc.dll, but x64 does not have oncrpc.lib. The NCrunch build is failing due to this missing file.
Hi, thanks for sharing this issue.

At this point in time, we don't have any specialised support for C++. We basically attempt to build the projects, and if they work then we can often roll with them, but we have no special interactions with the C++ build system and have performed no extensive testing to warrant that we're able to support these projects. So basically support for them is incidental only and isn't really driven by intention. Unfortunately we have a limited capacity to support integration with different project types, mostly because everything constantly moves at pace and the C++ build system is very large and complex.

Could you perhaps copy the file with a post build event? Or include it from the foreground x64 directory using the NCrunch 'Additional Files To Include' setting?

Post a reply

Log in to reply.