Fix using dependency module from nested referenced build in C#
This commit is contained in:
@@ -323,17 +323,11 @@ namespace Flax.Build
|
|||||||
// Reference module output binary
|
// Reference module output binary
|
||||||
fileReferences.Add(Path.Combine(outputPath, dependencyModule.BinaryModuleName + ".CSharp.dll"));
|
fileReferences.Add(Path.Combine(outputPath, dependencyModule.BinaryModuleName + ".CSharp.dll"));
|
||||||
}
|
}
|
||||||
foreach (var e in buildData.ReferenceBuilds)
|
var referencedBuild = buildData.FinReferenceBuildModule(dependencyModule.BinaryModuleName);
|
||||||
|
if (referencedBuild != null && !string.IsNullOrEmpty(referencedBuild.ManagedPath))
|
||||||
{
|
{
|
||||||
foreach (var q in e.Value.BuildInfo.BinaryModules)
|
// Reference binary module build build for referenced target
|
||||||
{
|
fileReferences.Add(referencedBuild.ManagedPath);
|
||||||
if (q.Name == dependencyModule.BinaryModuleName && !string.IsNullOrEmpty(q.ManagedPath))
|
|
||||||
{
|
|
||||||
// Reference binary module build build for referenced target
|
|
||||||
fileReferences.Add(q.ManagedPath);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user