Skip to content

Commit cc8b796

Browse files
committed
Fix NotSupportedException when using the project in an F# interactive (maybe C# interactive as well).
1 parent 35cd5fa commit cc8b796

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/runtime/moduleobject.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ public ModuleObject(string name) : base()
3535
string docstring = "Namespace containing types from the following assemblies:\n\n";
3636
foreach (Assembly a in AssemblyManager.GetAssemblies(name))
3737
{
38-
filename = a.Location;
38+
if (!a.IsDynamic && a.Location != null)
39+
{
40+
filename = a.Location;
41+
}
3942
docstring += "- " + a.FullName + "\n";
4043
}
4144

0 commit comments

Comments
 (0)