Support multi-targeting for .NET 8, 9, and 10 with version updates#14
Merged
Support multi-targeting for .NET 8, 9, and 10 with version updates#14
Conversation
- Both library projects now produce assemblies for all three frameworks - Microsoft.Extensions.* deps are version-matched per TFM (8.x/9.x/10.x) - Common deps (SmartFormat.NET, FusionCache) already support all targets - LangVersion=preview enables C# 14 features (extension blocks) on all TFMs - Extractor CLI stays net10.0 only (not a library NuGet) - All 145 tests pass, NuGet pack verified Agent-Logs-Url: https://github.com/linckez/BlazorLocalization/sessions/a56d0ca1-5cc4-47c6-b175-00f07f67fe8f Co-authored-by: linckez <10991491+linckez@users.noreply.github.com>
Agent-Logs-Url: https://github.com/linckez/BlazorLocalization/sessions/4812f4c1-8fb2-4dee-b431-3ba7e7c4b5ed Co-authored-by: linckez <10991491+linckez@users.noreply.github.com>
- BlazorLocalization.Extensions: 10.2.1 → 10.3.0 - BlazorLocalization.TranslationProvider.Crowdin: 10.0.3 → 10.1.0 - BlazorLocalization.Extractor: 10.1.2 → 10.1.3 Agent-Logs-Url: https://github.com/linckez/BlazorLocalization/sessions/4812f4c1-8fb2-4dee-b431-3ba7e7c4b5ed Co-authored-by: linckez <10991491+linckez@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR expands library compatibility by multi-targeting net8.0, net9.0, and net10.0 in key packages, while updating package/tool versions and aligning compiler settings (C# LangVersion 14) to support the broader target matrix.
Changes:
- Multi-target
BlazorLocalization.ExtensionsandBlazorLocalization.TranslationProvider.Crowdinfornet8.0;net9.0;net10.0. - Switch Microsoft.Extensions dependencies to framework-conditional
PackageReferencegroups for version alignment per TFM. - Bump package/tool versions for the affected projects.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/BlazorLocalization.Extensions/BlazorLocalization.Extensions.csproj | Multi-targets net8/9/10, sets C# 14, and uses TFM-conditional Microsoft.Extensions package references. |
| src/BlazorLocalization.TranslationProvider.Crowdin/BlazorLocalization.TranslationProvider.Crowdin.csproj | Multi-targets net8/9/10, sets C# 14, and uses TFM-conditional Microsoft.Extensions package references. |
| src/BlazorLocalization.Extractor/BlazorLocalization.Extractor.csproj | Bumps the extractor tool version to 10.1.3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the project files to support multiple .NET target frameworks (net8.0, net9.0, net10.0), introduces framework-specific dependencies for better compatibility, and bumps package versions across several projects.
Multi-targeting and Dependency Management:
BlazorLocalization.Extensions.csprojandBlazorLocalization.TranslationProvider.Crowdin.csprojto targetnet8.0,net9.0, andnet10.0instead of onlynet10.0. This improves compatibility with a wider range of .NET versions. [1] [2]ItemGroups, ensuring each target framework references the correct package versions. [1] [2]Other Project Updates:
LangVersionto 14 in the multi-targeted projects to align with the latest C# language features. [1] [2]BlazorLocalization.Extensionsto 10.3.0,BlazorLocalization.TranslationProvider.Crowdinto 10.1.0, andBlazorLocalization.Extractortool to 10.1.3. [1] [2] [3]