Skip to content

Commit f141b59

Browse files
Target only .NET 10 (#1003)
* Target only .NET 10 * Fix approved files * Add new approved files * Target only .NET 10 (#1004) * Initial plan * Update documentation to reference .NET 10 for ServiceComposer 5.0 Co-authored-by: mauroservienti <1325611+mauroservienti@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mauroservienti <1325611+mauroservienti@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: mauroservienti <1325611+mauroservienti@users.noreply.github.com>
1 parent 95399b7 commit f141b59

17 files changed

+23
-169
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Imagine an elementary e-commerce web page where it's needed to display details a
2525

2626
To start using ServiceComposer, follow the outlined steps:
2727

28-
- Create a .NET 8 or later empty web application project named `CompositionGateway` in an empty or existing solution.
28+
- Create a .NET 10 empty web application project named `CompositionGateway` in an empty or existing solution.
2929
- Add a package reference to the `ServiceComposer.AspNetCore` NuGet package and configure the `Startup` class as follows:
3030

3131
<!-- snippet: sample-startup -->
@@ -49,7 +49,7 @@ public class Startup
4949
<sup><a href='/src/Snippets/BasicUsage/Startup.cs#L8-L23' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample-startup' title='Start of snippet'>anchor</a></sup>
5050
<!-- endSnippet -->
5151

52-
- Add a new .NET 8 or later class library project named `Sales.ViewModelComposition`.
52+
- Add a new .NET 10 class library project named `Sales.ViewModelComposition`.
5353
- Add a package reference to the `ServiceComposer.AspNetCore` NuGet package.
5454
- Add a new class to create a composition request handler.
5555
- Define the class similar to the following:
@@ -113,7 +113,7 @@ In this brief sample, the view model instance returned by `GetComposedResponseMo
113113

114114
ServiceComposer is available for the following platforms:
115115

116-
- ASP.NET Core on .NET 8: [documentation is available in the docs folder](docs)
116+
- ASP.NET Core on .NET 10: [documentation is available in the docs folder](docs)
117117

118118
## Philosophy
119119

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ServiceComposer can be added to existing or new ASP.NET Core projects, or it can
55

66
## Supported .NET versions
77

8-
ServiceComposer targets .NET 8. Tests are executed against .NET 8 and .NET 9.
8+
Starting with version 5.0, ServiceComposer targets .NET 10 only.
99

1010
## Note about thread safety
1111

docs/upgrade-guides/4.x.x-5.0.0.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Upgrade guide from v4.x to 5.0.0
2+
3+
<!-- toc -->
4+
## Contents
5+
6+
* [Target frameworks](#target-frameworks)<!-- endToc -->
7+
8+
## Target frameworks
9+
10+
Starting with version 5.0.0, the `ServiceComposer.AspNetCore` package targets only .NET 10.

docs/upgrade-guides/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- [2.0.0 to 2.1.0](2.0.0-2.1.0.md)
55
- [2.x to 3.0.0](2.x.x-3.0.0.md)
66
- [3.x to 4.0.0](3.x.x-4.0.0.md)
7+
- [4.x to 5.0.0](4.x.x-5.0.0.md)

src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/AHandlerWithANestedClassCompositionHandler.cs.net8.0.verified.txt renamed to src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/AHandlerWithANestedClassCompositionHandler.cs.net10.0.verified.txt

File renamed without changes.

src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/AHandlerWithANestedClassCompositionHandler.cs.net9.0.verified.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/ClassWithInternalMethodCompositionHandler.cs.net8.0.verified.txt renamed to src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/ClassWithInternalMethodCompositionHandler.cs.net10.0.verified.txt

File renamed without changes.

src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/ClassWithInternalMethodCompositionHandler.cs.net9.0.verified.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/ContainerWithNestedClass.NestedClassCompositionHandler.cs.net8.0.verified.txt renamed to src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/ContainerWithNestedClass.NestedClassCompositionHandler.cs.net10.0.verified.txt

File renamed without changes.

src/ServiceComposer.AspNetCore.SourceGeneration.Tests/ApprovedFiles/ContainerWithNestedClass.NestedClassCompositionHandler.cs.net9.0.verified.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)