Merge branch 'GoaLitiuM-fix_csharp_module_linking' into dotnet7

This commit is contained in:
2023-02-16 09:46:04 +01:00
@@ -799,7 +799,7 @@ namespace Flax.Build
moduleOptions.CompileEnv.PreprocessorDefinitions.Add(dependencyModule.BinaryModuleName.ToUpperInvariant() + "_API=" + toolchain.DllImport);
var dependencyModuleBuild = buildData.FinReferenceBuildModule(moduleName);
if (dependencyModuleBuild != null)
if (dependencyModuleBuild != null && !string.IsNullOrEmpty(dependencyModuleBuild.NativePath))
{
// Link against the referenced binary module
if (toolchain.UseImportLibraryWhenLinking)