protected override Assembly Load(AssemblyName assemblyName) { var simpleName = assemblyName.Name !; if (CompilerAssemblySimpleNames.Contains(simpleName)) { // Delegate to the compiler's load context to load the compiler or anything // referenced by the compiler return(null); } var assemblyPath = Path.Combine(Directory, simpleName + ".dll"); if (!_loader.IsKnownDependencyLocation(assemblyPath)) { // The analyzer didn't explicitly register this dependency. Most likely the // assembly we're trying to load here is netstandard or a similar framework // assembly. We assume that if that is not the case, then the parent ALC will // fail to load this. return(null); } var pathToLoad = _loader.GetPathToLoad(assemblyPath); return(LoadFromAssemblyPath(pathToLoad)); }