From c2f412241406e18f50a2c78ef8ed370f41243238 Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 9 Aug 2013 02:01:05 +0100 Subject: [PATCH] Added workaround for CLR limitation when searching for native libraries. --- src/Generator/Utils/TestsUtils.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Generator/Utils/TestsUtils.cs b/src/Generator/Utils/TestsUtils.cs index 23a139ba..9d66186b 100644 --- a/src/Generator/Utils/TestsUtils.cs +++ b/src/Generator/Utils/TestsUtils.cs @@ -22,8 +22,13 @@ namespace CppSharp.Utils options.GeneratorKind = kind; options.OutputDir = "../gen/" + name; options.GenerateLibraryNamespace = false; - options.SharedLibraryName = name + ".Native"; + + // Workaround for CLR which does not check for .dll if the + // name already has a dot. + if (System.Type.GetType("Mono.Runtime") == null) + options.SharedLibraryName += ".dll"; + options.CheckSymbols = false; var path = "../../../tests/" + name;