Skip to content

Commit e01afbb

Browse files
committed
Add WasmMinimal
1 parent 264804c commit e01afbb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Components/ComponentsNoDeps.slnf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@
4747
"src\\Components\\benchmarkapps\\Wasm.Performance\\TestApp\\Wasm.Performance.TestApp.csproj",
4848
"src\\Components\\test\\E2ETest\\Microsoft.AspNetCore.Components.E2ETests.csproj",
4949
"src\\Components\\test\\testassets\\BasicTestApp\\BasicTestApp.csproj",
50+
"src\\Components\\test\\testassets\\Components.TestServer\\Components.TestServer.csproj",
51+
"src\\Components\\test\\testassets\\Components.WasmMinimal\\Components.WasmMinimal.csproj",
5052
"src\\Components\\test\\testassets\\ComponentsApp.App\\ComponentsApp.App.csproj",
5153
"src\\Components\\test\\testassets\\ComponentsApp.Server\\ComponentsApp.Server.csproj",
5254
"src\\Components\\test\\testassets\\GlobalizationWasmApp\\GlobalizationWasmApp.csproj",
5355
"src\\Components\\test\\testassets\\LazyTestContentPackage\\LazyTestContentPackage.csproj",
54-
"src\\Components\\test\\testassets\\TestContentPackage\\TestContentPackage.csproj",
55-
"src\\Components\\test\\testassets\\Components.TestServer\\Components.TestServer.csproj"
56+
"src\\Components\\test\\testassets\\TestContentPackage\\TestContentPackage.csproj"
5657
]
5758
}
5859
}

src/Components/test/testassets/Components.TestServer/RazorComponentEndpointsStartup.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Globalization;
5+
using System.Reflection;
56
using System.Security.Claims;
67
using Components.TestServer.RazorComponents;
78
using Components.TestServer.RazorComponents.Pages.Forms;
@@ -57,6 +58,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
5758
app.UseEndpoints(endpoints =>
5859
{
5960
endpoints.MapRazorComponents<TRootComponent>()
61+
.AddAssemblies(Assembly.Load("Components.WasmMinimal"))
6062
.AddServerRenderMode()
6163
.AddWebAssemblyRenderMode(new WebAssemblyComponentsEndpointOptions
6264
{

0 commit comments

Comments
 (0)