JakubNei/mcs-ICodeCompiler

Error "assemblyString cannot have zero length" + fix

Closed this issue · 1 comments

(firstly, great resource, thanks!)

Just fixed a tiny bug in ScriptBundleLoader that caused the titular bug.
Line 59 (middle of the LINQ in ScriptBundle constructor), switch:
.Where(a => !(a is System.Reflection.Emit.AssemblyBuilder))
to
.Where(a => (!(a is System.Reflection.Emit.AssemblyBuilder) && !string.IsNullOrEmpty(a.Location)))
to remove blanks.
HTH

Hello, thank you, fixed in: 47372a4