Skip to content

Commit 93673d7

Browse files
authored
Upgraded BlazorUI and MudBlazor to .NET 9
1 parent 53d2286 commit 93673d7

File tree

12 files changed

+47
-24
lines changed

12 files changed

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<InvariantGlobalization>true</InvariantGlobalization>
@@ -10,9 +10,9 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Bit.BlazorUI" Version="5.3.0-pre-06" />
14-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.10" />
15-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.10" PrivateAssets="all" />
13+
<PackageReference Include="Bit.BlazorUI" Version="9.5.0" />
14+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.2" />
15+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.2" PrivateAssets="all" />
1616
</ItemGroup>
1717

1818
</Project>

Bit.BlazorUI.Benchmark/Client/Pages/Index.razor

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
<BitLabel For="label-input">A Label for An Input</BitLabel>
1313
<input type="text" name="label-input" id="label-input" />
1414

15-
<BitProgressIndicator Label="Progress"
16-
Description="Example progress"
17-
BarHeight="20" />
15+
<BitProgress Label="Progress"
16+
Description="Example progress" />
1817
</div>
1918

2019
<style>

Bit.BlazorUI.Benchmark/Client/wwwroot/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<meta charset="utf-8" />
66
<title>Bit.BlazorUI.Benchmark</title>
77
<base href="/" />
8-
<link href="_content/Bit.BlazorUI/styles/bit.blazorui.min.css" rel="stylesheet" />
8+
<link href="_content/Bit.BlazorUI/styles/bit.blazorui.css" rel="stylesheet" />
99
</head>
1010

1111
<body>
1212
<div id="app">Loading...</div>
1313

1414
<script src="_framework/blazor.webassembly.js"></script>
15-
<script src="_content/Bit.BlazorUI/scripts/bit.blazorui.min.js"></script>
15+
<script src="_content/Bit.BlazorUI/scripts/bit.blazorui.js"></script>
1616

1717
</body>
1818

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-ef": {
6+
"version": "9.0.2",
7+
"commands": [
8+
"dotnet-ef"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

Bit.BlazorUI.Benchmark/Server/Bit.BlazorUI.Benchmark.Server.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.10" />
10+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.2" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

Bit.BlazorUI.Benchmark/Server/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
app.UseResponseCompression();
3636
}
3737
app.UseBlazorFrameworkFiles();
38-
app.UseStaticFiles();
38+
app.MapStaticAssets();
3939

4040
app.UseRouting();
4141

MudBlazor.Benchmark/Client/MainLayout.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<MudThemeProvider />
44
<MudDialogProvider />
5+
<MudPopoverProvider />
56
<MudSnackbarProvider />
67

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<InvariantGlobalization>true</InvariantGlobalization>
@@ -10,9 +10,9 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.10" />
14-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.10" PrivateAssets="all" />
15-
<PackageReference Include="MudBlazor" Version="6.8.0" />
13+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.2" />
14+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.2" PrivateAssets="all" />
15+
<PackageReference Include="MudBlazor" Version="8.3.0" />
1616
</ItemGroup>
1717

1818
</Project>

MudBlazor.Benchmark/Client/Pages/Index.razor

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
<MudButton Variant="Variant.Filled" OnClick="IncreaseCounter">@($"Counter: {counter}")</MudButton>
55

66
<MudDatePicker Style="max-width: 350px"
7-
AriaLabel="Select a date"
87
Placeholder="Select a date..." />
98

10-
<MudProgressLinear Label="Progress"
11-
Value="30"
12-
Description="Example progress"
13-
BarHeight="20" />
9+
<MudProgressLinear
10+
Value="30" />
1411

1512
<MudIconButton Icon="@Icons.Material.Filled.Delete" aria-label="delete"></MudIconButton>
1613

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-ef": {
6+
"version": "9.0.2",
7+
"commands": [
8+
"dotnet-ef"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)