Hi,
I apologise for raising this issue, as I know you don't strictly support this setup, but I'm at a loss on how to move forward, and was wondering if anyone had any quick pointers if they have been in a similar situation.
I'm using Visual Studio 2015 and .NET framework 4.6.2.
I have a C# project that builds an assembly. This project is referenced by my C++ project (compiled managed). When I build in Visual Studio or MSBuild, all is well. When NCrunch is enabled and does its build, it can't find the C# assembly to build the C++ project.
I looked in the NCrunch generated C++ project file and it is correctly translating the C# project reference into an assembly reference within the NCrunch workspace; so it "knows" where the dll is located for the C# project.
Unfortunately, to access the managed code in C++ you need a:
Code:
#using <myCSharpAssembly.dll>
which requires the use of the
/AI compiler flagThis compiler flag translates to a
Code:
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<AdditionalUsingDirectories>..\bin\$(Configuration)</AdditionalUsingDirectories>
within the project file, pointing to the output directory of where my C# assembly is built.
I think it is this compile option that is causing my issues in finding the assembly at compile time, as it can't be translated onto the NCrunch workspace.
Does anyone have any workarounds for this issue?
Cheers.