Skip to content

Commit 453ffd1

Browse files
authored
Revert "Added support of per-extension assembly isolation (#1431)" (#1449)
This reverts commit 0fddec0.
1 parent 0cb94b7 commit 453ffd1

File tree

2 files changed

+1
-34
lines changed

2 files changed

+1
-34
lines changed

src/app/dev/DevToys.Core/Mef/AssemblyIsolation.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/app/dev/DevToys.Core/Mef/RecursiveDirectoryCatalog.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ internal sealed partial class RecursiveDirectoryCatalog : ComposablePartCatalog,
1414
{
1515
private readonly ILogger _logger;
1616
private readonly string _path;
17-
private AssemblyIsolation? _assemblyIsolation;
1817
private AggregateCatalog? _aggregateCatalog;
1918

2019
/// <summary>
@@ -123,13 +122,7 @@ private bool AddLibraryToMefCatalog(string filePath)
123122
try
124123
{
125124
AssemblyCount++;
126-
127-
// Create an isolation context for the plugin.
128-
// This allows to load dependencies version that the plugin asks, even if DevToys uses a different version of that same dependency.
129-
_assemblyIsolation ??= new AssemblyIsolation(filePath);
130-
131-
Assembly assembly = _assemblyIsolation.LoadFromAssemblyPath(filePath);
132-
var asmCat = new AssemblyCatalog(assembly);
125+
var asmCat = new AssemblyCatalog(filePath);
133126

134127
// Force MEF to load the plugin and figure out if there are any exports
135128
// good assemblies will not throw the RTLE exception and can be added to the catalog

0 commit comments

Comments
 (0)