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";