Skip to content

Commit 15890e1

Browse files
committed
Upgrade to .net 9.0
1 parent db9e9a2 commit 15890e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+413
-380
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
# All files
4+
[*]
5+
indent_style = space
6+
7+
# C# files
8+
[*.cs]
9+
10+
# Indentation and spacing
11+
indent_size = 4
12+
tab_width = 4
13+
14+
# New line preferences
15+
end_of_line = crlf
16+
insert_final_newline = false
17+
18+
# Remove useless namespaces
19+
dotnet_diagnostic.IDE0005.severity = error

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup .NET
1313
uses: actions/setup-dotnet@v4
1414
with:
15-
dotnet-version: 8.0.x
15+
dotnet-version: 9.0.x
1616
- name: Restore dependencies
1717
run: dotnet restore
1818
- name: Build

Api/Controllers/ProductsController.cs

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

Api/Mappers/IProductMapper.cs

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

Api/Mappers/ProductMapper.cs

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

Api/Payloads/ProductDto.cs

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

Directory.Build.props

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFramework>net9.0</TargetFramework>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Deterministic>true</Deterministic>
6+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
9+
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
10+
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
11+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
12+
<NoWarn>$(NoWarn);CS1591;</NoWarn>
13+
</PropertyGroup>
14+
</Project>

Directory.Packages.props

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<PackageVersion Include="AwesomeAssertions" Version="8.1.0" />
8+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
9+
<PackageVersion Include="NetArchTest.Rules" Version="1.3.2" />
10+
<PackageVersion Include="nunit" Version="4.3.2" />
11+
<PackageVersion Include="NUnit3TestAdapter" Version="5.0.0" />
12+
<PackageVersion Include="Swashbuckle.AspNetCore" Version="8.1.1" />
13+
</ItemGroup>
14+
</Project>

Domain/Domain.csproj

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

Domain/Models/Product.cs

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

0 commit comments

Comments
 (0)