Rank: Newbie
Groups: Registered
Joined: 2/7/2012(UTC) Posts: 1 Location: London
|
Hi, My solution contains one VC++ project that builds a DLL which is used by my test assembly. This unmanaged DLL is required to run the tests (basically, my .NET assembly will be testing against the unmanaged version). Now when I configure NCrunch in my solution it will try to build the VC++ project and, as far as I can see, will try to load the unmanaged DLL as if it were managed, giving me an error: Quote:NCrunch: If you are experiencing problems in getting this project to build, have a look at https://www.ncrunch.net/...ng_project-build-issues
(0): System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid. at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders(UInt16& subsystem) at Mono.Cecil.PE.ImageReader.ReadImage() at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream) at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters) at nCrunch.Reflection.Cecil.CustomCecilAssemblyResolver.LoadAssembly(String compiledAssemblyFilePath, IDictionary`2 documentFilePathMap) at nCrunch.Compiler.StaticManipulation.BuiltAssembly..ctor(String builtAssemblyFilePath, IList`1 adjustedAssemblyReferences, IDictionary`2 codeFilePathsByWorkspaceFilePath, Boolean instrumentForPerformanceMeasurement) at nCrunch.Compiler.RemoteBuildRunner.#=qG3xdYhfR9FrLKjSk7_DjKTEHGSCh98p3RXMZRew3v94=(ComponentBuildParameters #=qdxVPMjovJt8faoeOknNjoA==, String #=q_Vd_hVdT8ec$sXMmcu$iiwI6vfq43uyiWq3iGXbN3Tk=, BuildOutput #=qCE28jExqmIRdWsuiBUzoIQ==, String #=qDISW8vYeJKSpzLfOxACHpG_LUfk0kp_p0n_fP40Rmg0=) at nCrunch.Compiler.RemoteBuildRunner.Build(ComponentBuildParameters parameters) Is there any way to workaround this? Thanks Pedro
|