Skip to content

Commit 5699e48

Browse files
committed
Fix assembly log exception
1 parent d22b57c commit 5699e48

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PowerShellEditorServices.Hosting/EditorServicesLoader.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ public static EditorServicesLoader Create(
120120
{
121121
AppDomain.CurrentDomain.AssemblyLoad += (object sender, AssemblyLoadEventArgs args) =>
122122
{
123+
if (args.LoadedAssembly.IsDynamic)
124+
{
125+
return;
126+
}
127+
123128
logger.Log(
124129
PsesLogLevel.Diagnostic,
125130
$"Loaded '{args.LoadedAssembly.GetName()}' from '{args.LoadedAssembly.Location}'");

0 commit comments

Comments
 (0)