From 4fe8389df97ed5a30378fcbdcc4f0b3f438da1b7 Mon Sep 17 00:00:00 2001 From: Nitesh Singhal Date: Sun, 7 Dec 2025 19:28:13 +0530 Subject: [PATCH 1/3] Upgrade target framework to .NET 10 and update package references --- src/File.API/File.API.csproj | 4 ++-- src/File.Core/File.Core.csproj | 10 +++++----- src/File.Domain/File.Domain.csproj | 2 +- src/File.Infrastructure/File.Infrastructure.csproj | 8 ++++---- .../File.Infrastructure.IntegrationTests.csproj | 2 +- .../File.API.SystemTests/File.API.SystemTests.csproj | 4 ++-- .../File.API.UnitTests/File.API.UnitTests.csproj | 2 +- .../File.Core.UnitTests/File.Core.UnitTests.csproj | 2 +- .../File.Domain.UnitTests/File.Domain.UnitTests.csproj | 2 +- .../File.Infrastructure.UnitTests.csproj | 2 +- .../File.UnitTests.Common/File.UnitTests.Common.csproj | 4 ++-- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/File.API/File.API.csproj b/src/File.API/File.API.csproj index ec84d76..1fd4533 100644 --- a/src/File.API/File.API.csproj +++ b/src/File.API/File.API.csproj @@ -1,14 +1,14 @@  - net9.0 + net10.0 enable enable - + diff --git a/src/File.Core/File.Core.csproj b/src/File.Core/File.Core.csproj index 96ea6d8..2856eff 100644 --- a/src/File.Core/File.Core.csproj +++ b/src/File.Core/File.Core.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable @@ -9,10 +9,10 @@ - - - - + + + + diff --git a/src/File.Domain/File.Domain.csproj b/src/File.Domain/File.Domain.csproj index 513e412..378c632 100644 --- a/src/File.Domain/File.Domain.csproj +++ b/src/File.Domain/File.Domain.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/src/File.Infrastructure/File.Infrastructure.csproj b/src/File.Infrastructure/File.Infrastructure.csproj index fff7ad1..a47690b 100644 --- a/src/File.Infrastructure/File.Infrastructure.csproj +++ b/src/File.Infrastructure/File.Infrastructure.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable @@ -10,9 +10,9 @@ - - - + + + diff --git a/src/Tests/IntegrationTests/File.Infrastructure.IntegrationTests/File.Infrastructure.IntegrationTests.csproj b/src/Tests/IntegrationTests/File.Infrastructure.IntegrationTests/File.Infrastructure.IntegrationTests.csproj index 4de0f5f..ca95860 100644 --- a/src/Tests/IntegrationTests/File.Infrastructure.IntegrationTests/File.Infrastructure.IntegrationTests.csproj +++ b/src/Tests/IntegrationTests/File.Infrastructure.IntegrationTests/File.Infrastructure.IntegrationTests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/src/Tests/SystemTests/File.API.SystemTests/File.API.SystemTests.csproj b/src/Tests/SystemTests/File.API.SystemTests/File.API.SystemTests.csproj index 63d7ebf..845cc38 100644 --- a/src/Tests/SystemTests/File.API.SystemTests/File.API.SystemTests.csproj +++ b/src/Tests/SystemTests/File.API.SystemTests/File.API.SystemTests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable @@ -9,7 +9,7 @@ - + diff --git a/src/Tests/UnitTests/File.API.UnitTests/File.API.UnitTests.csproj b/src/Tests/UnitTests/File.API.UnitTests/File.API.UnitTests.csproj index 8dd7d6e..67fb8dc 100644 --- a/src/Tests/UnitTests/File.API.UnitTests/File.API.UnitTests.csproj +++ b/src/Tests/UnitTests/File.API.UnitTests/File.API.UnitTests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/src/Tests/UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj b/src/Tests/UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj index b402484..eff7908 100644 --- a/src/Tests/UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj +++ b/src/Tests/UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/src/Tests/UnitTests/File.Domain.UnitTests/File.Domain.UnitTests.csproj b/src/Tests/UnitTests/File.Domain.UnitTests/File.Domain.UnitTests.csproj index 8dd7d6e..67fb8dc 100644 --- a/src/Tests/UnitTests/File.Domain.UnitTests/File.Domain.UnitTests.csproj +++ b/src/Tests/UnitTests/File.Domain.UnitTests/File.Domain.UnitTests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/src/Tests/UnitTests/File.Infrastructure.UnitTests/File.Infrastructure.UnitTests.csproj b/src/Tests/UnitTests/File.Infrastructure.UnitTests/File.Infrastructure.UnitTests.csproj index 2cb956e..0c2e222 100644 --- a/src/Tests/UnitTests/File.Infrastructure.UnitTests/File.Infrastructure.UnitTests.csproj +++ b/src/Tests/UnitTests/File.Infrastructure.UnitTests/File.Infrastructure.UnitTests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/src/Tests/UnitTests/File.UnitTests.Common/File.UnitTests.Common.csproj b/src/Tests/UnitTests/File.UnitTests.Common/File.UnitTests.Common.csproj index 04ac517..95542df 100644 --- a/src/Tests/UnitTests/File.UnitTests.Common/File.UnitTests.Common.csproj +++ b/src/Tests/UnitTests/File.UnitTests.Common/File.UnitTests.Common.csproj @@ -1,13 +1,13 @@  - net9.0 + net10.0 enable enable - + From 607296abe0211f54257b6b9307e6c8253068c43e Mon Sep 17 00:00:00 2001 From: Nitesh Singhal Date: Sun, 7 Dec 2025 19:39:04 +0530 Subject: [PATCH 2/3] Update README.md for .NET SDK and ASP.NET Core version changes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4bd0c0f..ba1dbc7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Two methods for downloading files are demonstrated: - [Technologies](#technologies) # Prerequisites -* **.NET SDK 9.0+** +* **.NET SDK 10.0+** * **Angular CLI 19+** * **Node.js 20.11.1+** @@ -84,7 +84,7 @@ In this solution, each 'code' project has its own unit test project and every ** The frontend is a simple Angular project that demonstrates how to upload and download files as blobs or FormData from the C# API. Files are saved to the Downloads folder using the [file-saver](https://www.npmjs.com/package/file-saver) library. For styling, the project utilizes [Bootstrap](https://getbootstrap.com/). It also includes examples of displaying modals with [ng-bootstrap](https://www.npmjs.com/package/@ng-bootstrap/ng-bootstrap) and showing toasts/notifications with [angular-notifier](https://www.npmjs.com/package/gramli-angular-notifier). Additionally, it demonstrates how to use translations in an Angular project with the [@ngx-translate/core](https://ngx-translate.org/) library, including a custom implementation of TranslateLoader to handle multiple translation files. ## Technologies -* [ASP.NET Core 9](https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core?view=aspnetcore-9.0) +* [ASP.NET Core 10](https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core?view=aspnetcore-10.0) * [Entity Framework Core InMemory](https://learn.microsoft.com/en-us/ef/core/providers/in-memory/?tabs=dotnet-core-cli) * [SmallApiToolkit](https://github.com/Gramli/SmallApiToolkit) * [Mapster](https://github.com/MapsterMapper/Mapster) From 19e8ba0ef9e5372bf7f72909104c49df3fb01980 Mon Sep 17 00:00:00 2001 From: Nitesh Singhal Date: Mon, 8 Dec 2025 07:47:42 +0530 Subject: [PATCH 3/3] Update other package references --- .github/workflows/dotnet.yml | 2 +- src/File.API/File.API.csproj | 4 ++-- src/File.Core/File.Core.csproj | 2 +- src/File.Domain/File.Domain.csproj | 2 +- src/File.Infrastructure/File.Infrastructure.csproj | 2 +- .../File.Infrastructure.IntegrationTests.csproj | 4 ++-- .../File.API.SystemTests/File.API.SystemTests.csproj | 4 ++-- .../UnitTests/File.API.UnitTests/File.API.UnitTests.csproj | 4 ++-- .../UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj | 4 ++-- .../File.Domain.UnitTests/File.Domain.UnitTests.csproj | 4 ++-- .../File.Infrastructure.UnitTests.csproj | 4 ++-- 11 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4a01d0c..edc75e1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,7 +22,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/src/File.API/File.API.csproj b/src/File.API/File.API.csproj index 1fd4533..1618abb 100644 --- a/src/File.API/File.API.csproj +++ b/src/File.API/File.API.csproj @@ -10,8 +10,8 @@ - - + + diff --git a/src/File.Core/File.Core.csproj b/src/File.Core/File.Core.csproj index 2856eff..64af443 100644 --- a/src/File.Core/File.Core.csproj +++ b/src/File.Core/File.Core.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/File.Domain/File.Domain.csproj b/src/File.Domain/File.Domain.csproj index 378c632..6540a1f 100644 --- a/src/File.Domain/File.Domain.csproj +++ b/src/File.Domain/File.Domain.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/File.Infrastructure/File.Infrastructure.csproj b/src/File.Infrastructure/File.Infrastructure.csproj index a47690b..68c60ab 100644 --- a/src/File.Infrastructure/File.Infrastructure.csproj +++ b/src/File.Infrastructure/File.Infrastructure.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/Tests/IntegrationTests/File.Infrastructure.IntegrationTests/File.Infrastructure.IntegrationTests.csproj b/src/Tests/IntegrationTests/File.Infrastructure.IntegrationTests/File.Infrastructure.IntegrationTests.csproj index ca95860..848c7b2 100644 --- a/src/Tests/IntegrationTests/File.Infrastructure.IntegrationTests/File.Infrastructure.IntegrationTests.csproj +++ b/src/Tests/IntegrationTests/File.Infrastructure.IntegrationTests/File.Infrastructure.IntegrationTests.csproj @@ -9,9 +9,9 @@ - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/Tests/SystemTests/File.API.SystemTests/File.API.SystemTests.csproj b/src/Tests/SystemTests/File.API.SystemTests/File.API.SystemTests.csproj index 845cc38..d231509 100644 --- a/src/Tests/SystemTests/File.API.SystemTests/File.API.SystemTests.csproj +++ b/src/Tests/SystemTests/File.API.SystemTests/File.API.SystemTests.csproj @@ -10,9 +10,9 @@ - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/Tests/UnitTests/File.API.UnitTests/File.API.UnitTests.csproj b/src/Tests/UnitTests/File.API.UnitTests/File.API.UnitTests.csproj index 67fb8dc..a617278 100644 --- a/src/Tests/UnitTests/File.API.UnitTests/File.API.UnitTests.csproj +++ b/src/Tests/UnitTests/File.API.UnitTests/File.API.UnitTests.csproj @@ -9,9 +9,9 @@ - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/Tests/UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj b/src/Tests/UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj index eff7908..6a4148a 100644 --- a/src/Tests/UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj +++ b/src/Tests/UnitTests/File.Core.UnitTests/File.Core.UnitTests.csproj @@ -9,10 +9,10 @@ - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/Tests/UnitTests/File.Domain.UnitTests/File.Domain.UnitTests.csproj b/src/Tests/UnitTests/File.Domain.UnitTests/File.Domain.UnitTests.csproj index 67fb8dc..a617278 100644 --- a/src/Tests/UnitTests/File.Domain.UnitTests/File.Domain.UnitTests.csproj +++ b/src/Tests/UnitTests/File.Domain.UnitTests/File.Domain.UnitTests.csproj @@ -9,9 +9,9 @@ - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/Tests/UnitTests/File.Infrastructure.UnitTests/File.Infrastructure.UnitTests.csproj b/src/Tests/UnitTests/File.Infrastructure.UnitTests/File.Infrastructure.UnitTests.csproj index 0c2e222..6e7ad8b 100644 --- a/src/Tests/UnitTests/File.Infrastructure.UnitTests/File.Infrastructure.UnitTests.csproj +++ b/src/Tests/UnitTests/File.Infrastructure.UnitTests/File.Infrastructure.UnitTests.csproj @@ -9,10 +9,10 @@ - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all