This commit is contained in:
vis2k 2021-08-26 13:06:59 +08:00
parent bb8268dd06
commit 6d1a13fc27

View File

@ -134,13 +134,13 @@ static HashSet<string> GetDependencyPaths(string assemblyPath)
{
Path.GetDirectoryName(assemblyPath)
};
foreach (UnityAssembly unityAsm in CompilationPipeline.GetAssemblies())
foreach (Assembly assembly in CompilationPipeline.GetAssemblies())
{
if (unityAsm.outputPath == assemblyPath)
if (assembly.outputPath == assemblyPath)
{
foreach (string unityAsmRef in unityAsm.compiledAssemblyReferences)
foreach (string reference in assembly.compiledAssemblyReferences)
{
dependencyPaths.Add(Path.GetDirectoryName(unityAsmRef));
dependencyPaths.Add(Path.GetDirectoryName(reference));
}
}
}