From 1d0a512b805bc744d28f13e6226d0c96bb17346f Mon Sep 17 00:00:00 2001 From: triton Date: Sat, 21 Sep 2013 00:19:38 +0100 Subject: [PATCH] Use the shared library name as a last resort if the symbol is not found. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 0ad88e82..ced2eaf6 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -2189,6 +2189,8 @@ namespace CppSharp.Generators.CSharp { libName = libName.Substring(3); } + if (libName == null) + libName = Options.SharedLibraryName; if (Options.GenerateInternalImports) libName = "__Internal";