Esempio n. 1
0
        private static void SetPathForNativeDllResolution()
        {
            if (IntPtr.Size != 8)
            {
                const string message = "Wapiti.NET only supports 64-bit processes!";
                throw new ArgumentOutOfRangeException(message);
            }

            var assemblyPath = Wapiti.GetExecutingAssemblyPath();

            Wapiti.SetPathForNativeDllResolution(assemblyPath, "native", "x64");
            // Support for NCrunch
            Wapiti.SetPathForNativeDllResolution(assemblyPath, "..", "lib", "native", "x64");
            // Support for LINQPad
            Wapiti.SetPathForNativeDllResolution(assemblyPath, "..", "..", "native", "x64");
        }