Skip to content

Commit 37b9c9a

Browse files
authored
update samples to .NET 9 and latest version of the package #15 (#16)
1 parent 93673d7 commit 37b9c9a

30 files changed

+100
-95
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
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>
7-
<BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
8-
<BlazorWebAssemblyPreserveCollationData>false</BlazorWebAssemblyPreserveCollationData>
7+
<InvariantTimezone>true</InvariantTimezone>
8+
<HybridGlobalization>true</HybridGlobalization>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="AntDesign" Version="0.15.4" />
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" />
12+
<PackageReference Include="AntDesign" Version="1.2.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" />
1515
</ItemGroup>
1616

1717
</Project>

AntDesign.Benchmark/Client/Pages/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@page "/"
22

33
<div class="container">
4-
<Button OnClick="IncreaseCounter" Type="primary">@($"Counter: {counter}")</Button>
4+
<Button OnClick="IncreaseCounter" Type="ButtonType.Primary">@($"Counter: {counter}")</Button>
55

66
<Checkbox @bind-Checked="checkBoxIsChecked" Disabled="@checkBoxDisabled">
77
@($"{(checkBoxIsChecked ? "Check" : "Uncheck")}-{(checkBoxDisabled ? "Disable" : "Enable")}")

AntDesign.Benchmark/Server/AntDesign.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>

AntDesign.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

Bit.BlazorUI.Benchmark/Client/Bit.BlazorUI.Benchmark.Client.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7+
<InvariantTimezone>true</InvariantTimezone>
78
<InvariantGlobalization>true</InvariantGlobalization>
8-
<BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
9-
<BlazorWebAssemblyPreserveCollationData>false</BlazorWebAssemblyPreserveCollationData>
109
</PropertyGroup>
1110

1211
<ItemGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<BitLabel For="label-input">A Label for An Input</BitLabel>
1313
<input type="text" name="label-input" id="label-input" />
1414

15-
<BitProgress Label="Progress"
15+
<BitProgress Label="Progress" Percent="30"
1616
Description="Example progress" />
1717
</div>
1818

BlazorBenchmarks.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Syncfusion.Blazor.Benchmark
6363
EndProject
6464
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Syncfusion.Blazor.Benchmark.Server", "Syncfusion.Blazor.Benchmark\Server\Syncfusion.Blazor.Benchmark.Server.csproj", "{B99719A5-C51D-4E84-8C17-0232EFDB69F7}"
6565
EndProject
66+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Solution Items", ".Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}"
67+
ProjectSection(SolutionItems) = preProject
68+
README.md = README.md
69+
EndProjectSection
70+
EndProject
6671
Global
6772
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6873
Debug|Any CPU = Debug|Any CPU
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
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>
7-
<BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
8-
<BlazorWebAssemblyPreserveCollationData>false</BlazorWebAssemblyPreserveCollationData>
7+
<InvariantTimezone>true</InvariantTimezone>
8+
<HybridGlobalization>true</HybridGlobalization>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Blazorise.Bootstrap" Version="1.2.5" />
13-
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.2.5" />
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" />
12+
<PackageReference Include="Blazorise.Bootstrap" Version="1.7.4" />
13+
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.7.4" />
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>

Blazorise.Benchmark/Server/Blazorise.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>

Blazorise.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

0 commit comments

Comments
 (0)