Skip to content

Commit

Permalink
解决组件下try编译失败 (#2178)
Browse files Browse the repository at this point in the history
* 解决组件下try编译失败

* Update Masa.Blazor.Extensions.Languages.Razor to v0.0.3

---------

Co-authored-by: capdiem <[email protected]>
  • Loading branch information
239573049 and capdiem authored Sep 30, 2024
1 parent 75560e8 commit 0b1deca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/Masa.Blazor.Docs/Components/Examples/Example.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@ public async Task RunCode()
var portableExecutableReferences = new List<PortableExecutableReference>();
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)
{
Expand Down
2 changes: 1 addition & 1 deletion docs/Masa.Blazor.Docs/Masa.Blazor.Docs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Masa.Blazor.Extensions.Languages.Razor" Version="0.0.2" />
<PackageReference Include="Masa.Blazor.Extensions.Languages.Razor" Version="0.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.CustomElements" Version="8.0.0" />
Expand Down

0 comments on commit 0b1deca

Please sign in to comment.