Skip to content

Commit 96c4924

Browse files
committed
Update for .NET 10.0 support and version 1.2.1 release
- Add .NET 10.0 support; multi-target net8.0/net9.0/net10.0 - Bump library version to 1.2.1 and update README/docs - Update BlazorExpress.Core to 0.3.0 - Use conditional package references for Components.Web - Update demo project to .NET 10.0 and latest dependencies - Add global usings; minor formatting and doc fixes - Update copyright year to 2026
1 parent 8b5d2d7 commit 96c4924

8 files changed

Lines changed: 35 additions & 22 deletions

File tree

BlazorExpress.ChartJS.Demo.WebAssembly/App.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="new []{ typeof(BlazorExpress.ChartJS.Demo.RCL.App).Assembly }">
1+
<Router AppAssembly="@typeof(App).Assembly"
2+
AdditionalAssemblies="new []{ typeof(BlazorExpress.ChartJS.Demo.RCL.App).Assembly }">
23
<Found Context="routeData">
34
<RouteView RouteData="@routeData" DefaultLayout="@typeof(BlazorExpress.ChartJS.Demo.RCL.MainLayout)" />
45
<FocusOnNavigate RouteData="@routeData" Selector="h1" />

BlazorExpress.ChartJS.Demo.WebAssembly/BlazorExpress.ChartJS.Demo.WebAssembly.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<Nullable>enable</Nullable>
6-
<ImplicitUsings>enable</ImplicitUsings>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>
78
</PropertyGroup>
89

910
<ItemGroup>
1011
<_ContentIncludedByDefault Remove="wwwroot\staticwebapp.config.json" />
1112
</ItemGroup>
1213

1314
<ItemGroup>
14-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.5" />
15-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.5" PrivateAssets="all" />
15+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0" />
16+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.0" PrivateAssets="all" />
1617
</ItemGroup>
1718

1819
<ItemGroup>

BlazorExpress.ChartJS.Demo.WebAssembly/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
using BlazorExpress.ChartJS.Demo.WebAssembly;
2-
using Microsoft.AspNetCore.Components.Web;
3-
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
4-
51
var builder = WebAssemblyHostBuilder.CreateDefault(args);
2+
63
builder.RootComponents.Add<App>("#app");
74
builder.RootComponents.Add<HeadOutlet>("head::after");
85

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
global using BlazorExpress.ChartJS.Demo.WebAssembly;
2+
global using Microsoft.AspNetCore.Components.Web;
3+
global using Microsoft.AspNetCore.Components.WebAssembly.Hosting;

BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot/appsettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.0",
2+
"version": "1.2.1",
33
"release": {
44
"short_description": "Adds BarChart styling, LineChart features, and improved docs."
55
},
@@ -20,5 +20,5 @@
2020
"github_discussions": "//github.com/BlazorExpress/BlazorExpress.ChartJS/discussions",
2121
"stackoverflow": "//stackoverflow.com/questions/tagged/blazorexpress-chartjs"
2222
},
23-
"dotNetVersion": "8.0.0"
23+
"dotNetVersion": "10.0.0"
2424
}

BlazorExpress.ChartJS/BlazorExpress.ChartJS.csproj

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44

55
<PackageId>BlazorExpress.ChartJS</PackageId>
6-
<Version>1.2.0</Version>
7-
<PackageVersion>1.2.0</PackageVersion>
6+
<Version>1.2.1</Version>
7+
<PackageVersion>1.2.1</PackageVersion>
88

99
<PackageIcon>logo.png</PackageIcon>
1010
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
@@ -15,9 +15,9 @@
1515
<Description>An open-source, production-ready Blazor charts component library built on the Blazor and Chart.js JavaScript library.</Description>
1616
<Authors>Vikram Reddy</Authors>
1717
<Company>Blazor Express</Company>
18-
<Copyright>Copyright © 2025 Blazor Express</Copyright>
18+
<Copyright>Copyright © 2026 Blazor Express</Copyright>
1919

20-
<TargetFramework>net8.0</TargetFramework>
20+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
2121
<Nullable>enable</Nullable>
2222
<ImplicitUsings>enable</ImplicitUsings>
2323
</PropertyGroup>
@@ -32,8 +32,19 @@
3232
</ItemGroup>
3333

3434
<ItemGroup>
35-
<PackageReference Include="BlazorExpress.Core" Version="0.1.1" />
36-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.17" />
35+
<PackageReference Include="BlazorExpress.Core" Version="0.3.0" />
3736
</ItemGroup>
3837

38+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
39+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.17" />
40+
</ItemGroup>
41+
42+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
43+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
44+
</ItemGroup>
45+
46+
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
47+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.0" />
48+
</ItemGroup>
49+
3950
</Project>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
Get started any way you want
3131

3232
- Clone the repo: `git clone https://github.com/BlazorExpress/BlazorExpress.ChartJS`
33-
- Install with [NuGet](https://www.nuget.org/): `Install-Package BlazorExpress.ChartJS -Version 1.2.0`
33+
- Install with [NuGet](https://www.nuget.org/): `Install-Package BlazorExpress.ChartJS -Version 1.2.1`
3434

3535
## Online Demos
3636

@@ -57,4 +57,4 @@ More components coming...
5757

5858
## Copyright and license
5959

60-
Code and documentation copyright 2025 [Blazor Express](https://blazorexpress.com/) Code released under the [Apache-2.0 License](https://github.com/BlazorExpress/BlazorExpress.ChartJS/blob/main/LICENSE).
60+
Code and documentation copyright 2026 [Blazor Express](https://blazorexpress.com/) Code released under the [Apache-2.0 License](https://github.com/BlazorExpress/BlazorExpress.ChartJS/blob/main/LICENSE).

nuget/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Get started any way you want
1616

1717
- Clone the repo: `git clone https://github.com/BlazorExpress/BlazorExpress.ChartJS`
18-
- Install with [NuGet](https://www.nuget.org/): `Install-Package BlazorExpress.ChartJS -Version 1.2.0`
18+
- Install with [NuGet](https://www.nuget.org/): `Install-Package BlazorExpress.ChartJS -Version 1.2.1`
1919

2020
## Online Demos
2121

@@ -42,4 +42,4 @@ More components coming...
4242

4343
## Copyright and license
4444

45-
Code and documentation copyright 2025 [Blazor Express](https://blazorexpress.com/) Code released under the [Apache-2.0 License](https://github.com/BlazorExpress/BlazorExpress.ChartJS/blob/main/LICENSE).
45+
Code and documentation copyright 2026 [Blazor Express](https://blazorexpress.com/) Code released under the [Apache-2.0 License](https://github.com/BlazorExpress/BlazorExpress.ChartJS/blob/main/LICENSE).

0 commit comments

Comments
 (0)