diff --git a/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorAssemblyResolver.cs b/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorAssemblyResolver.cs index a2a0a8745..8cc7b990f 100644 --- a/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorAssemblyResolver.cs +++ b/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorAssemblyResolver.cs @@ -131,11 +131,15 @@ string FindFile(string name) string exeName = name + ".exe"; // perhaps the type comes from a dll + // caching assemblyReferences.Select(Path.GetFileName) in constructor + // would throw FileNotFoundExceptions in some large projects! string fileName = assemblyReferences.FirstOrDefault(r => Path.GetFileName(r) == dllName); if (fileName != null) return fileName; // perhaps the type comes from an exe instead + // caching assemblyReferences.Select(Path.GetFileName) in constructor + // would throw FileNotFoundExceptions in some large projects! fileName = assemblyReferences.FirstOrDefault(r => Path.GetFileName(r) == exeName); if (fileName != null) return fileName;