Skip to content

Commit 1a97a61

Browse files
committed
Fix case without lazy assemblies
1 parent 24bf61f commit 1a97a61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void WriteBootJson(Stream output, string entryAssemblyName)
176176
{
177177
var endpointByAsset = Endpoints.ToDictionary(e => e.GetMetadata("AssetFile"));
178178

179-
var lazyLoadAssembliesWithoutExtension = LazyLoadedAssemblies.ToDictionary(l =>
179+
var lazyLoadAssembliesWithoutExtension = (LazyLoadedAssemblies ?? Array.Empty<ITaskItem>()).ToDictionary(l =>
180180
{
181181
var extension = Path.GetExtension(l.ItemSpec);
182182
if (extension == ".dll" || extension == Utils.WebcilInWasmExtension)

0 commit comments

Comments
 (0)