Merge branch 'master' of https://github.com/TorchAPI/Torch
This commit is contained in:
@@ -331,6 +331,8 @@ namespace Torch.Managers
|
||||
{
|
||||
var assemblies = new List<Assembly>();
|
||||
|
||||
var loaded = AppDomain.CurrentDomain.GetAssemblies();
|
||||
|
||||
if (item.IsZip)
|
||||
{
|
||||
using (var zipFile = ZipFile.OpenRead(item.Path))
|
||||
@@ -340,6 +342,9 @@ namespace Torch.Managers
|
||||
if (!entry.Name.EndsWith(".dll", StringComparison.CurrentCultureIgnoreCase))
|
||||
continue;
|
||||
|
||||
//if (loaded.Any(a => entry.Name.Contains(a.GetName().Name)))
|
||||
// continue;
|
||||
|
||||
|
||||
using (var stream = entry.Open())
|
||||
{
|
||||
@@ -375,6 +380,9 @@ namespace Torch.Managers
|
||||
if (!file.EndsWith(".dll", StringComparison.CurrentCultureIgnoreCase))
|
||||
continue;
|
||||
|
||||
//if (loaded.Any(a => file.Contains(a.GetName().Name)))
|
||||
// continue;
|
||||
|
||||
using (var stream = File.OpenRead(file))
|
||||
{
|
||||
var data = stream.ReadToEnd();
|
||||
|
Reference in New Issue
Block a user