Forum member

kestral

7 posts

Posts by kestral

  1. Unmanaged dll cant be referenced

    I managed to get it going with some of the hints you had in your last message. I ended up getting it working by creating a Resources folder under my unit test project. In that folder, I placed my DLL. I set the DLL's build action to Content as per your suggestion I set Copy to Output Directory …

  2. Unmanaged dll cant be referenced

    I'm not sure if this is what you meant, but I added the dll as a resource, then set it to be embedded in the executable. The executable then extracts it before its accessed and writes the resource to disk. I still couldnt get the test to run. It still cant find the DLL. I tried copying the dll to…

  3. Unmanaged dll cant be referenced

    I don;t know how to do what you suggested. Do you have a link to somewhere that shows how ? The code I'm having trouble with looks like this private const string Dll = @"my.dll"; [DllImport(Dll, CallingConvention = CallingConvention.Cdecl, EntryPoint = "methodname")] [MethodImp…

  4. Unmanaged dll cant be referenced

    Thanks for the reply. That option only seems to let me specify other projects within the same solution. The dll I'm using is a 3rd party dll and isnt in a project. Is there an option where I can copy a specific file into the NCrunch output folder ?

  5. Unmanaged dll cant be referenced

    I have an unmanaged C dll as part of my solution. When tests get run on the solution, it brings up the error System.DllNotFoundException Unable to load DLL ***** or one of it's dependents. The specified module could not be found (0x8007007e) Is there a way to resolve this ? I looked at …

  6. NCrunch not happy with unsafe code

    Thanks for that info. I went through and set all the Configuration and Platform to Any CPU and it's all working now. Still not sure where I had a mixup on the x86 version but if I need it again I'll look through the same options.

  7. NCrunch not happy with unsafe code

    If I have a method as below that demonstrates my problem. [code=csharp] public static void Junk() { unsafe { } } [/code] NCrunch has a build failure. It has the following message. [quote]Libraries\NumKeys.cs (157, 13): Unsafe …