From 0b1decac2c3e96c2151a3c723c8c9d0e9d5eddb4 Mon Sep 17 00:00:00 2001 From: token <61819790+239573049@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:51:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BB=84=E4=BB=B6=E4=B8=8Btr?= =?UTF-8?q?y=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5=20(#2178)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 解决组件下try编译失败 * Update Masa.Blazor.Extensions.Languages.Razor to v0.0.3 --------- Co-authored-by: capdiem --- docs/Masa.Blazor.Docs/Components/Examples/Example.razor.cs | 7 +++++++ docs/Masa.Blazor.Docs/Masa.Blazor.Docs.csproj | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/Masa.Blazor.Docs/Components/Examples/Example.razor.cs b/docs/Masa.Blazor.Docs/Components/Examples/Example.razor.cs index 9ebb4a2d66..8a41468d20 100644 --- a/docs/Masa.Blazor.Docs/Components/Examples/Example.razor.cs +++ b/docs/Masa.Blazor.Docs/Components/Examples/Example.razor.cs @@ -247,6 +247,13 @@ public async Task RunCode() var portableExecutableReferences = new List(); if (Js is IJSInProcessRuntime) { + var asms = AppDomain.CurrentDomain.GetAssemblies(); + + foreach (var assembly in asms) + { + s_assemblies.Add(assembly.GetName().Name); + } + using var http = HttpClientFactory.CreateClient("masa-docs"); foreach (var asm in s_assemblies) { diff --git a/docs/Masa.Blazor.Docs/Masa.Blazor.Docs.csproj b/docs/Masa.Blazor.Docs/Masa.Blazor.Docs.csproj index 67d8174f0c..d967e288db 100644 --- a/docs/Masa.Blazor.Docs/Masa.Blazor.Docs.csproj +++ b/docs/Masa.Blazor.Docs/Masa.Blazor.Docs.csproj @@ -11,7 +11,7 @@ - +