Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit c65398a

Browse files
committed
No Exception with dynamic Types
1 parent 0e58df7 commit c65398a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Main/Base/Project/Designer/TypeResolutionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public Assembly LoadAssembly(string fileName)
202202
// FIX for SD2-716, remove when designer gets its own AppDomain
203203
foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) {
204204
try {
205-
if (string.Equals(GetOriginalAssemblyFullPath(asm), fileName, StringComparison.OrdinalIgnoreCase)) {
205+
if (!asm.IsDynamic && string.Equals(GetOriginalAssemblyFullPath(asm), fileName, StringComparison.OrdinalIgnoreCase)) {
206206
RegisterAssembly(asm);
207207
return asm;
208208
}

0 commit comments

Comments
 (0)