From efc793a8289ebe47b6418b243f118f103c3c54bf Mon Sep 17 00:00:00 2001 From: "Jefferson L. da Silva" Date: Fri, 8 Aug 2025 14:46:41 -0300 Subject: [PATCH 1/2] Uses central package management Adds Directory.Packages.props to manage package versions centrally. Removes individual PackageReference Version attributes from csproj files and references the central package versions. This change promotes consistency and simplifies dependency management across the solution. --- Directory.Packages.props | 63 +++++++++++++++++++ .../InvoiceReminder.API.UnitTests.csproj | 24 ++++--- .../InvoiceReminder.API.csproj | 16 ++--- ...voiceReminder.Application.UnitTests.csproj | 18 +++--- .../InvoiceReminder.Application.csproj | 14 ++--- .../InvoiceReminder.ArchitectureTests.csproj | 18 +++--- .../InvoiceReminder.Authentication.csproj | 8 +-- .../InvoiceReminder.CrossCutting.IoC.csproj | 14 ++--- .../InvoiceReminder.Data.csproj | 26 ++++---- .../InvoiceReminder.Domain.csproj | 10 +-- ...ceReminder.DomainEntities.UnitTests.csproj | 20 +++--- ...Reminder.ExternalServices.UnitTests.csproj | 24 ++++--- ...ceReminder.Infrastructure.UnitTests.csproj | 26 ++++---- ...oiceReminder.JobScheduler.UnitTests.csproj | 20 +++--- .../InvoiceReminder.JobScheduler.csproj | 6 +- .../InvoiceReminder.ExternalServices.csproj | 22 +++---- .../InvoiceReminder.UnitTests.Assets.csproj | 4 +- 17 files changed, 190 insertions(+), 143 deletions(-) create mode 100644 Directory.Packages.props diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000..9aaca89 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,63 @@ + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/InvoiceReminder.API.UnitTests/InvoiceReminder.API.UnitTests.csproj b/InvoiceReminder.API.UnitTests/InvoiceReminder.API.UnitTests.csproj index 4f6f436..85dc662 100644 --- a/InvoiceReminder.API.UnitTests/InvoiceReminder.API.UnitTests.csproj +++ b/InvoiceReminder.API.UnitTests/InvoiceReminder.API.UnitTests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -19,27 +19,25 @@ - - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/InvoiceReminder.API/InvoiceReminder.API.csproj b/InvoiceReminder.API/InvoiceReminder.API.csproj index 7097e74..c7cac67 100644 --- a/InvoiceReminder.API/InvoiceReminder.API.csproj +++ b/InvoiceReminder.API/InvoiceReminder.API.csproj @@ -15,17 +15,17 @@ - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/InvoiceReminder.Application.UnitTests/InvoiceReminder.Application.UnitTests.csproj b/InvoiceReminder.Application.UnitTests/InvoiceReminder.Application.UnitTests.csproj index 79dc87c..8d4e073 100644 --- a/InvoiceReminder.Application.UnitTests/InvoiceReminder.Application.UnitTests.csproj +++ b/InvoiceReminder.Application.UnitTests/InvoiceReminder.Application.UnitTests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -18,25 +18,23 @@ - - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/InvoiceReminder.Application/InvoiceReminder.Application.csproj b/InvoiceReminder.Application/InvoiceReminder.Application.csproj index ac28f75..ef3141e 100644 --- a/InvoiceReminder.Application/InvoiceReminder.Application.csproj +++ b/InvoiceReminder.Application/InvoiceReminder.Application.csproj @@ -21,16 +21,16 @@ - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/InvoiceReminder.ArchitectureTests/InvoiceReminder.ArchitectureTests.csproj b/InvoiceReminder.ArchitectureTests/InvoiceReminder.ArchitectureTests.csproj index ac0748e..4e786e1 100644 --- a/InvoiceReminder.ArchitectureTests/InvoiceReminder.ArchitectureTests.csproj +++ b/InvoiceReminder.ArchitectureTests/InvoiceReminder.ArchitectureTests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -20,21 +20,19 @@ - - - + + - - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/InvoiceReminder.Authentication/InvoiceReminder.Authentication.csproj b/InvoiceReminder.Authentication/InvoiceReminder.Authentication.csproj index 4edb968..f61be14 100644 --- a/InvoiceReminder.Authentication/InvoiceReminder.Authentication.csproj +++ b/InvoiceReminder.Authentication/InvoiceReminder.Authentication.csproj @@ -12,10 +12,10 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/InvoiceReminder.CrossCutting.IoC/InvoiceReminder.CrossCutting.IoC.csproj b/InvoiceReminder.CrossCutting.IoC/InvoiceReminder.CrossCutting.IoC.csproj index 3fc3724..ebfa91a 100644 --- a/InvoiceReminder.CrossCutting.IoC/InvoiceReminder.CrossCutting.IoC.csproj +++ b/InvoiceReminder.CrossCutting.IoC/InvoiceReminder.CrossCutting.IoC.csproj @@ -15,13 +15,13 @@ - - - - - - - + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/InvoiceReminder.Data/InvoiceReminder.Data.csproj b/InvoiceReminder.Data/InvoiceReminder.Data.csproj index dce56fd..d7cd600 100644 --- a/InvoiceReminder.Data/InvoiceReminder.Data.csproj +++ b/InvoiceReminder.Data/InvoiceReminder.Data.csproj @@ -12,25 +12,25 @@ - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/InvoiceReminder.Domain/InvoiceReminder.Domain.csproj b/InvoiceReminder.Domain/InvoiceReminder.Domain.csproj index 2c725fc..c8ee93d 100644 --- a/InvoiceReminder.Domain/InvoiceReminder.Domain.csproj +++ b/InvoiceReminder.Domain/InvoiceReminder.Domain.csproj @@ -8,11 +8,11 @@ - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/InvoiceReminder.DomainEntities.UnitTests/InvoiceReminder.DomainEntities.UnitTests.csproj b/InvoiceReminder.DomainEntities.UnitTests/InvoiceReminder.DomainEntities.UnitTests.csproj index b6db244..4f6a118 100644 --- a/InvoiceReminder.DomainEntities.UnitTests/InvoiceReminder.DomainEntities.UnitTests.csproj +++ b/InvoiceReminder.DomainEntities.UnitTests/InvoiceReminder.DomainEntities.UnitTests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -19,22 +19,20 @@ - - - - + + + - - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/InvoiceReminder.ExternalServices.UnitTests/InvoiceReminder.ExternalServices.UnitTests.csproj b/InvoiceReminder.ExternalServices.UnitTests/InvoiceReminder.ExternalServices.UnitTests.csproj index 68c616f..0aabd53 100644 --- a/InvoiceReminder.ExternalServices.UnitTests/InvoiceReminder.ExternalServices.UnitTests.csproj +++ b/InvoiceReminder.ExternalServices.UnitTests/InvoiceReminder.ExternalServices.UnitTests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -18,27 +18,25 @@ - - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/InvoiceReminder.Infrastructure.UnitTests/InvoiceReminder.Infrastructure.UnitTests.csproj b/InvoiceReminder.Infrastructure.UnitTests/InvoiceReminder.Infrastructure.UnitTests.csproj index c15c417..9f68c1e 100644 --- a/InvoiceReminder.Infrastructure.UnitTests/InvoiceReminder.Infrastructure.UnitTests.csproj +++ b/InvoiceReminder.Infrastructure.UnitTests/InvoiceReminder.Infrastructure.UnitTests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -19,28 +19,26 @@ - - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csproj b/InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csproj index bcbd0d0..de4195e 100644 --- a/InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csproj +++ b/InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -17,25 +17,23 @@ - - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/InvoiceReminder.JobScheduler/InvoiceReminder.JobScheduler.csproj b/InvoiceReminder.JobScheduler/InvoiceReminder.JobScheduler.csproj index 6c8df1c..efa1f0b 100644 --- a/InvoiceReminder.JobScheduler/InvoiceReminder.JobScheduler.csproj +++ b/InvoiceReminder.JobScheduler/InvoiceReminder.JobScheduler.csproj @@ -12,9 +12,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/InvoiceReminder.Services/InvoiceReminder.ExternalServices.csproj b/InvoiceReminder.Services/InvoiceReminder.ExternalServices.csproj index cc6899e..a52251e 100644 --- a/InvoiceReminder.Services/InvoiceReminder.ExternalServices.csproj +++ b/InvoiceReminder.Services/InvoiceReminder.ExternalServices.csproj @@ -12,21 +12,19 @@ - - - - - - - - - + + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + diff --git a/InvoiceReminder.UnitTests.Assets/InvoiceReminder.UnitTests.Assets.csproj b/InvoiceReminder.UnitTests.Assets/InvoiceReminder.UnitTests.Assets.csproj index b2b43c3..35c5047 100644 --- a/InvoiceReminder.UnitTests.Assets/InvoiceReminder.UnitTests.Assets.csproj +++ b/InvoiceReminder.UnitTests.Assets/InvoiceReminder.UnitTests.Assets.csproj @@ -1,4 +1,4 @@ - + net9.0 @@ -7,7 +7,7 @@ - + From 2ef1cc948423e566b21091df9f8b75225fbff9ae Mon Sep 17 00:00:00 2001 From: "Jefferson L. da Silva" Date: Fri, 8 Aug 2025 15:22:58 -0300 Subject: [PATCH 2/2] Updates dependencies and solution structure Updates NuGet package references for improved stability and security. Refactors the solution structure to group unit test projects under a dedicated folder and organizes solution items for better maintainability. --- .../InvoiceReminder.Application.UnitTests.csproj | 2 +- InvoiceReminder.sln | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/InvoiceReminder.Application.UnitTests/InvoiceReminder.Application.UnitTests.csproj b/InvoiceReminder.Application.UnitTests/InvoiceReminder.Application.UnitTests.csproj index 8d4e073..c9bbb25 100644 --- a/InvoiceReminder.Application.UnitTests/InvoiceReminder.Application.UnitTests.csproj +++ b/InvoiceReminder.Application.UnitTests/InvoiceReminder.Application.UnitTests.csproj @@ -29,7 +29,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/InvoiceReminder.sln b/InvoiceReminder.sln index b55f07a..81089c1 100644 --- a/InvoiceReminder.sln +++ b/InvoiceReminder.sln @@ -35,12 +35,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InvoiceReminder.JobSchedule EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InvoiceReminder.Application", "InvoiceReminder.Application\InvoiceReminder.Application.csproj", "{995B652F-6095-4056-A1AB-F45AAF0135D2}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{66A414D1-0ABD-4675-A73D-0D0E7F12CB3D}" - ProjectSection(SolutionItems) = preProject - .editorconfig = .editorconfig - CodeCoverage.runsettings = CodeCoverage.runsettings - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "5 - Unit Tests", "5 - Unit Tests", "{67471F47-0B78-4F8A-95CD-145F78F644C3}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InvoiceReminder.ExternalServices", "InvoiceReminder.Services\InvoiceReminder.ExternalServices.csproj", "{F2EB382B-25E4-43D8-8159-53DB5085DED6}" @@ -63,6 +57,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InvoiceReminder.UnitTests.A EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InvoiceReminder.ArchitectureTests", "InvoiceReminder.ArchitectureTests\InvoiceReminder.ArchitectureTests.csproj", "{F8FE30DD-52E6-4981-96A7-D4D487522A26}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Itens de Solução", "Itens de Solução", "{380A7511-A354-6D7A-0CC0-8FA1F1BA7B6C}" + ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig + CodeCoverage.runsettings = CodeCoverage.runsettings + Directory.Packages.props = Directory.Packages.props + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU