Skip to content

Commit 0eb9cab

Browse files
committed
Version 2.21.0
1 parent 9327a6b commit 0eb9cab

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

SpawnDev.BlazorJS.Demo/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
builder.Services.AddBlazorJSRuntime(out var JS);
1010
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
1111
var host = await builder.Build().StartBackgroundServices();
12+
13+
JS.Set("_testit", (string msg) =>
14+
{
15+
Console.WriteLine($"_testit called with message: {msg}");
16+
});
1217
#if DEBUG && false
1318
// null-conditional test
1419
JS.Set("__test", new { name = "something", config = new { visible = true } });

SpawnDev.BlazorJS/SpawnDev.BlazorJS.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<Version>2.20.0</Version>
7+
<Version>2.21.0</Version>
88
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<EmbedAllSources>true</EmbedAllSources>
@@ -55,4 +55,10 @@
5555
<SupportedPlatform Include="browser" />
5656
</ItemGroup>
5757

58+
<PropertyGroup>
59+
<!-- Disable filename mangling with hash which is enabled by default in .Net (9?) 10 SDK. It causes runtime loading of Javascript files to fail due to unknown filename. -->
60+
<StaticWebAssetFingerprintingEnabled>false</StaticWebAssetFingerprintingEnabled>
61+
<StaticWebAssetsFingerprintContent>false</StaticWebAssetsFingerprintContent>
62+
</PropertyGroup>
63+
5864
</Project>

0 commit comments

Comments
 (0)