From f35ebc64d1e99a3cf519f49f58f0e21f4489a65d Mon Sep 17 00:00:00 2001 From: de4dot Date: Sun, 8 Mar 2015 15:34:16 +0100 Subject: [PATCH] Preserve IsAutoLoaded property when hot replacing assemblies --- ILSpy/AssemblyList.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ILSpy/AssemblyList.cs b/ILSpy/AssemblyList.cs index 2087f4245..43c0d1316 100644 --- a/ILSpy/AssemblyList.cs +++ b/ILSpy/AssemblyList.cs @@ -162,6 +162,7 @@ namespace ICSharpCode.ILSpy var index = this.assemblies.IndexOf(target); var newAsm = new LoadedAssembly(this, file, stream); + newAsm.IsAutoLoaded = target.IsAutoLoaded; lock (assemblies) { this.assemblies.Remove(target);