diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5d90497..dc136db 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,7 +7,6 @@ on:
branches: [ main, develop ]
env:
- DOTNET_VERSION: '7.0.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
@@ -20,15 +19,21 @@ jobs:
- name: 📥 Checkout
uses: actions/checkout@v4
- - name: ⚙️ Setup .NET
+ - name: ⚙️ Setup .NET SDKs
uses: actions/setup-dotnet@v4
with:
- dotnet-version: ${{ env.DOTNET_VERSION }}
+ dotnet-version: |
+ 6.0.x
+ 7.0.x
+ 8.0.x
+ 9.0.x
+ 10.0.x
+ dotnet-quality: 'preview'
- name: 📦 Restore dependencies
run: dotnet restore JsonViewer.Blazor.sln
- - name: 🏗️ Build Component
+ - name: 🏗️ Build Component (Multi-target)
run: dotnet build src/Component/Component.csproj --no-restore --configuration Release
- name: 🏗️ Build Demo
@@ -38,6 +43,13 @@ jobs:
run: |
echo "## 🏗️ Build Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
+ echo "### Targets Built" >> $GITHUB_STEP_SUMMARY
+ echo "- ✅ net6.0" >> $GITHUB_STEP_SUMMARY
+ echo "- ✅ net7.0" >> $GITHUB_STEP_SUMMARY
+ echo "- ✅ net8.0" >> $GITHUB_STEP_SUMMARY
+ echo "- ✅ net9.0" >> $GITHUB_STEP_SUMMARY
+ echo "- ✅ net10.0 (Preview)" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "### Projects" >> $GITHUB_STEP_SUMMARY
echo "- **Component**: ✅ Built successfully" >> $GITHUB_STEP_SUMMARY
echo "- **Demo**: ✅ Built successfully" >> $GITHUB_STEP_SUMMARY
- echo "- **.NET Version**: ${{ env.DOTNET_VERSION }}" >> $GITHUB_STEP_SUMMARY
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 9b9cd70..dfd4466 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -24,10 +24,16 @@ jobs:
- name: 📥 Checkout repository
uses: actions/checkout@v4
- - name: 🔧 Setup .NET
+ - name: 🔧 Setup .NET SDKs
uses: actions/setup-dotnet@v4
with:
- dotnet-version: '7.0.x'
+ dotnet-version: |
+ 6.0.x
+ 7.0.x
+ 8.0.x
+ 9.0.x
+ 10.0.x
+ dotnet-quality: 'preview'
- name: ⚙️ Initialize CodeQL
uses: github/codeql-action/init@v3
diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml
index ade4adf..b3865a1 100644
--- a/.github/workflows/deploy-pages.yml
+++ b/.github/workflows/deploy-pages.yml
@@ -18,7 +18,7 @@ concurrency:
cancel-in-progress: false
env:
- DOTNET_VERSION: '7.0.x'
+ DOTNET_VERSION: '9.0.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
@@ -31,10 +31,13 @@ jobs:
- name: 📥 Checkout
uses: actions/checkout@v4
- - name: ⚙️ Setup .NET
- uses: actions/setup-dotnet@v4
- with:
- dotnet-version: ${{ env.DOTNET_VERSION }}
+ - name: ⚙️ Setup .NET SDKs
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
+ dotnet-quality: 'ga'
- name: 📦 Restore dependencies
run: dotnet restore JsonViewer.Blazor.sln
diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml
index 0f43f26..944bc3a 100644
--- a/.github/workflows/nuget-publish.yml
+++ b/.github/workflows/nuget-publish.yml
@@ -11,7 +11,7 @@ on:
default: '0.0.3-beta'
env:
- DOTNET_VERSION: '7.0.x'
+ DOTNET_VERSION: '9.0.x'
PROJECT_PATH: 'src/Component/Component.csproj'
jobs:
@@ -29,10 +29,16 @@ jobs:
with:
fetch-depth: 0
- - name: ⚙️ Setup .NET
+ - name: ⚙️ Setup .NET SDKs
uses: actions/setup-dotnet@v4
with:
- dotnet-version: ${{ env.DOTNET_VERSION }}
+ dotnet-version: |
+ 6.0.x
+ 7.0.x
+ 8.0.x
+ 9.0.x
+ 10.0.x
+ dotnet-quality: 'preview'
- name: 🔍 Determine Version
id: version
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index c1ed1ec..8e503e3 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -9,6 +9,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
+## [0.0.4-beta] - 2025-12-03
+
+### ✨ Added
+- **Multi-framework support**: Now supports .NET 6, .NET 7, .NET 8, .NET 9, and .NET 10!
+- Wider compatibility for all Blazor applications
+
+### 🔧 Changed
+- Updated SDK to .NET 9
+- Demo application upgraded to .NET 8 (LTS)
+- Conditional dependencies for each target framework
+
+### 📦 Supported Frameworks
+| Framework | Status |
+|-----------|--------|
+| .NET 6.0 | ✅ Supported |
+| .NET 7.0 | ✅ Supported |
+| .NET 8.0 | ✅ Supported (LTS) |
+| .NET 9.0 | ✅ Supported |
+| .NET 10.0 | ✅ Supported (Preview) |
+
## [0.0.3-beta] - 2025-12-03
### ✨ Added
@@ -150,7 +170,8 @@ See [CONTRIBUTING.md](../.github/CONTRIBUTING.md) for details on how to contribu
- 🔒 Security - Security fixes
- 📚 Documentation - Documentation changes
-[Unreleased]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.3-beta...HEAD
+[Unreleased]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.4-beta...HEAD
+[0.0.4-beta]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.3-beta...v0.0.4-beta
[0.0.3-beta]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.2-beta...v0.0.3-beta
[0.0.2-beta]: https://github.com/JsonViewer-Component/Blazor/compare/v0.0.1-beta...v0.0.2-beta
[0.0.1-beta]: https://github.com/JsonViewer-Component/Blazor/releases/tag/v0.0.1-beta
diff --git a/global.json b/global.json
index b0dd76d..57aaedd 100644
--- a/global.json
+++ b/global.json
@@ -1,10 +1,7 @@
{
"sdk": {
- "version": "7.0.0",
- "rollForward": "latestFeature",
- "allowPrerelease": false
- },
- "msbuild-sdks": {
- "Microsoft.Build.NoTargets": "3.7.134"
+ "version": "9.0.100",
+ "rollForward": "latestMajor",
+ "allowPrerelease": true
}
-}
\ No newline at end of file
+}
diff --git a/src/Blazor.Demo/Blazor.Demo.csproj b/src/Blazor.Demo/Blazor.Demo.csproj
index d619412..41146d9 100644
--- a/src/Blazor.Demo/Blazor.Demo.csproj
+++ b/src/Blazor.Demo/Blazor.Demo.csproj
@@ -1,19 +1,18 @@
-
- net7.0
- enable
- enable
-
+
+ net8.0
+ enable
+ enable
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/src/Component/Component.csproj b/src/Component/Component.csproj
index ed26dd3..f1f577a 100644
--- a/src/Component/Component.csproj
+++ b/src/Component/Component.csproj
@@ -1,7 +1,10 @@
+
+
+
- net7.0
+ net6.0;net7.0;net8.0;net9.0;net10.0
enable
enable
latest
@@ -13,7 +16,7 @@
JsonViewer.Blazor
- 0.0.3-beta
+ 0.0.4-beta
JSON Viewer for Blazor
Parsa Panahpoor
JsonViewer-Component
@@ -37,33 +40,26 @@
• Fully responsive design
• High performance - handles large JSON files
-📦 Easy to install and use in Blazor WebAssembly and Blazor Server applications.
+📦 Supports .NET 6, .NET 7, .NET 8, .NET 9, and .NET 10!
A powerful JSON viewer component for Blazor with search, statistics, themes, and editing capabilities.
- blazor;json;viewer;component;wasm;webassembly;dotnet;csharp;razor;asp.net;json-viewer;syntax-highlighting;dark-theme;light-theme;search;export;copy;statistics;tree-view;collapsible;expandable;editor;formatter;beautifier
+ blazor;json;viewer;component;wasm;webassembly;dotnet;csharp;razor;asp.net;json-viewer;syntax-highlighting;dark-theme;light-theme;search;export;copy;statistics;tree-view;collapsible;expandable;editor;formatter;beautifier;net6;net7;net8;net9;net10
-## 🎉 Version 0.0.3-beta
+## 🎉 Version 0.0.4-beta
### ✨ New Features
-- Improved repository structure
-- Enhanced documentation
-- Better CI/CD pipeline
+- Multi-framework support: .NET 6, .NET 7, .NET 8, .NET 9, .NET 10
+- Wider compatibility for all Blazor applications
-### 🐛 Bug Fixes
-- Fixed Persian comments translated to English
-- Fixed workflow issues
-- Improved code quality
-
-### 📚 Documentation
-- Reorganized project structure
-- Updated all documentation to English
-- Added comprehensive CHANGELOG
+### 🔧 Changes
+- Updated to support multiple .NET versions
+- Optimized dependencies for each framework
For full changelog, visit: https://github.com/JsonViewer-Component/Blazor/blob/main/docs/CHANGELOG.md
@@ -107,14 +103,39 @@ For full changelog, visit: https://github.com/JsonViewer-Component/Blazor/blob/m
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+