public Assembly LoadReference(DependencyReferenceDescriptor reference)
 {
     throw new NotImplementedException();
 }
        public override Assembly LoadReference(DependencyReferenceDescriptor reference)
        {
            if (Disabled)
                return null;

            Logger.Information("Loading reference '{0}'", reference.Name);

            // DynamicExtensionLoader has 2 types of references: assemblies from module bin directory
            // and .csproj.
            Assembly result;
            if (StringComparer.OrdinalIgnoreCase.Equals(Path.GetExtension(reference.VirtualPath), ".dll"))
                result = _assemblyProbingFolder.LoadAssembly(reference.Name);
            else {
                result = _buildManager.GetCompiledAssembly(reference.VirtualPath);
            }

            Logger.Information("Done loading reference '{0}'", reference.Name);
            return result;
        }
        public override Assembly LoadReference(DependencyReferenceDescriptor reference)
        {
            if (Disabled)
                return null;

            Logger.Information("Loading reference '{0}'", reference.Name);

            var result = _assemblyProbingFolder.LoadAssembly(reference.Name);

            Logger.Information("Done loading reference '{0}'", reference.Name);
            return result;
        }
 public virtual Assembly LoadReference(DependencyReferenceDescriptor reference)
 {
     return null;
 }