Skip to content

[dev-v5] Update project files for .NET 8 support#4953

Draft
dvoituron wants to merge 1 commit into
dev-v5from
users/dvoituron/dev-v5/net8
Draft

[dev-v5] Update project files for .NET 8 support#4953
dvoituron wants to merge 1 commit into
dev-v5from
users/dvoituron/dev-v5/net8

Conversation

@dvoituron

Copy link
Copy Markdown
Collaborator

[dev-v5] Update project files for .NET 8 support

Adjust project files to target the appropriate .NET versions and update dependencies for compatibility with .NET 8.

This change enhances support for newer frameworks and ensures proper functionality across projects.

Copilot AI review requested due to automatic review settings June 22, 2026 13:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates repository-wide .NET targeting to improve .NET 8 support for published libraries while keeping demos/samples/tests on a newer “example” TFM, and adjusts a component to use the GeneratedRegex source-generator pattern.

Changes:

  • Split framework selection into NetVersion (libraries) vs ExampleNetVersion (demos/samples/tests) and updated many project files accordingly.
  • Added net8-specific central package versions in Directory.Packages.props.
  • Updated FluentColorPickerInput to use GeneratedRegex with a partial method (HexColorRegex()).

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/Tools/McpServer.Tests/Microsoft.FluentUI.AspNetCore.McpServer.Tests.csproj Switch test project TFM to $(ExampleNetVersion).
tests/Integration/Components.IntegrationTests.csproj Switch integration test TFM to $(ExampleNetVersion).
tests/Core/Components.Tests.csproj Switch unit test TFM to $(ExampleNetVersion).
src/Core/Components/ColorPicker/FluentColorPickerInput.razor.cs Update regex generator usage to GeneratedRegex partial method pattern.
examples/Tools/FluentUI.Demo.SampleData/FluentUI.Demo.SampleData.csproj Switch tool project TFM to $(ExampleNetVersion).
examples/Tools/FluentUI.Demo.SampleApi/FluentUI.Demo.SampleApi.csproj Switch tool project TFM to $(ExampleNetVersion).
examples/Tools/FluentUI.Demo.DocViewer/FluentUI.Demo.DocViewer.csproj Switch tool project TFM to $(ExampleNetVersion).
examples/Tools/FluentUI.Demo.DocViewer.Tests/FluentUI.Demo.DocViewer.Tests.csproj Switch tool test project TFM to $(ExampleNetVersion).
examples/Tools/FluentUI.Demo.DocApiGen/FluentUI.Demo.DocApiGen.csproj Switch doc generator TFM to $(ExampleNetVersion).
examples/Tools/FluentUI.Demo.DocApiGen.Tests/FluentUI.Demo.DocApiGen.Tests.csproj Switch doc generator tests TFM to $(ExampleNetVersion).
examples/Tools/FluentUI.Demo.DocApiGen.IntegrationTests/FluentUI.Demo.DocApiGen.IntegrationTests.csproj Switch doc generator integration tests TFM to $(ExampleNetVersion).
examples/Samples/FluentUI.Samples.WasmStandalone/FluentUI.Samples.WasmStandalone.csproj Switch sample app TFM to $(ExampleNetVersion).
examples/Demo/FluentUI.Explorers/FluentUI.Explorers.csproj Switch demo explorer TFM to $(ExampleNetVersion).
examples/Demo/FluentUI.Demo/FluentUI.Demo.csproj Switch demo host TFM to $(ExampleNetVersion).
examples/Demo/FluentUI.Demo.Client/FluentUI.Demo.Client.csproj Switch client TFM and related conditions to $(ExampleNetVersion).
Directory.Packages.props Introduce net8-specific package version set and version properties.
Directory.Build.props Define NetVersion vs ExampleNetVersion and adjust multi-targeting configuration.

Comment thread Directory.Build.props
<!-- Used with the published libraries: Core; McpServer; Charts; DataGrid adapters -->
<!-- Debug: minimum + ExampleNetVersion for faster builds; Release: full multi-targeting -->
<TargetNetVersions Condition="'$(Configuration)' == 'Release'">net8.0;net9.0;net10.0</TargetNetVersions>
<TargetNetVersions Condition="'$(Configuration)' != 'Release'">$(NetVersion)</TargetNetVersions>
Comment thread Directory.Packages.props
Comment on lines +4 to +6
<RuntimeVersion8>8.0.0</RuntimeVersion8>
<AspNetCoreVersion8>8.0.22</AspNetCoreVersion8>
<EfCoreVersion8>8.0.0</EfCoreVersion8>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants