Skip to content

Commit bb547ae

Browse files
authored
update to rc1 (#67)
* update to rc1 * Add TimeProvider to unit tests
1 parent 1191f1e commit bb547ae

8 files changed

Lines changed: 25 additions & 18 deletions

File tree

demo/StaticSample/StaticSample.Client/StaticSample.Client.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
1+
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile>
@@ -10,9 +10,9 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="Blazr.RenderState.WASM" Version="1.0.0" />
13-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.10" />
14-
<PackageReference Include="MudBlazor" Version="8.*" />
15-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="8.0.10" />
13+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.3" />
14+
<PackageReference Include="MudBlazor" Version="9.0.0-rc.1" />
15+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="10.0.3" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

demo/StaticSample/StaticSample/Components/App.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<base href="/" />
8+
<ResourcePreloader />
89
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
910
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
11+
<ImportMap />
1012
<link rel="icon" type="image/png" href="favicon.ico" />
1113
<HeadOutlet @rendermode="RenderModeForPage" />
1214
</head>

demo/StaticSample/StaticSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767

6868
app.UseHttpsRedirection();
6969

70-
app.UseStaticFiles();
7170
app.UseAntiforgery();
7271

72+
app.MapStaticAssets();
7373
app.MapRazorComponents<App>()
7474
.AddInteractiveServerRenderMode()
7575
.AddInteractiveWebAssemblyRenderMode()

demo/StaticSample/StaticSample/StaticSample.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<UserSecretsId>aspnet-StaticSample-a614679c-ea80-4979-a2aa-8404fc74cde9</UserSecretsId>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="Blazr.RenderState.Server" Version="1.0.0" />
12-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.11" />
13-
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.11" />
14-
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.11" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.11" />
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.11">
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.3" />
13+
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="10.0.3" />
14+
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.3" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.3" />
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.3">
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>
20-
<PackageReference Include="MudBlazor" Version="8.*" />
20+
<PackageReference Include="MudBlazor" Version="9.0.0-rc.1" />
2121
</ItemGroup>
2222

2323
<ItemGroup>

src/MudBlazor.StaticInput.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Razor">
1+
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
44
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
@@ -22,20 +22,22 @@
2222

2323
<ItemGroup>
2424
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.3.9" />
25-
<PackageReference Include="MudBlazor" Version="8.*" />
2625
</ItemGroup>
2726

2827
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
28+
<PackageReference Include="MudBlazor" Version="8.*" />
2929
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.*" />
3030
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.*" />
3131
</ItemGroup>
3232

3333
<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
34+
<PackageReference Include="MudBlazor" Version="9.0.0-rc.1" />
3435
<PackageReference Include="Microsoft.AspNetCore.Components" Version="9.0.*" />
3536
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.*" />
3637
</ItemGroup>
3738

3839
<ItemGroup Condition=" '$(TargetFramework)' == 'net10.0' ">
40+
<PackageReference Include="MudBlazor" Version="9.0.0-rc.1" />
3941
<PackageReference Include="Microsoft.AspNetCore.Components" Version="10.0.*" />
4042
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.*" />
4143
</ItemGroup>

tests/StaticInput.UnitTests.Viewer/StaticInput.UnitTests.Viewer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="MudBlazor" Version="8.*" />
10+
<PackageReference Include="MudBlazor" Version="9.0.0-rc.1" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

tests/StaticInput.UnitTests/Components/BaseComponentTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Bunit;
22
using Microsoft.AspNetCore.Components;
3+
using Microsoft.Extensions.DependencyInjection;
34
using Microsoft.Playwright;
45
using MudBlazor.Services;
56
using StaticInput.UnitTests.Fixtures;
@@ -17,6 +18,7 @@ protected BaseComponentTest(ContextFixture contextFixture)
1718
{
1819
Context = new();
1920
ContextFixture = contextFixture;
21+
Context.Services.AddSingleton(TimeProvider.System);
2022
Context.Services.AddMudBlazorKeyInterceptor();
2123
Context.Services.AddMudLocalization();
2224
Context.JSInterop.Mode = JSRuntimeMode.Loose;

tests/StaticInput.UnitTests/StaticInput.UnitTests.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
<PrivateAssets>all</PrivateAssets>
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2222
</PackageReference>
23+
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.3.0" />
2324
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
24-
<PackageReference Include="Microsoft.Playwright" Version="1.57.0" />
25+
<PackageReference Include="Microsoft.Playwright" Version="1.58.0" />
2526
<PackageReference Include="Moq" Version="4.20.72" />
26-
<PackageReference Include="MudBlazor" Version="8.*" />
27+
<PackageReference Include="MudBlazor" Version="9.0.0-rc.1" />
2728
<PackageReference Include="xunit" Version="2.9.3" />
2829
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
2930
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)