Skip to content

Commit

Permalink
.net 8 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfmarconi committed May 27, 2024
1 parent 9f22cc5 commit afa64e1
Show file tree
Hide file tree
Showing 27 changed files with 4 additions and 94 deletions.
36 changes: 0 additions & 36 deletions .vscode/launch.json

This file was deleted.

4 changes: 3 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<Authors>Lucas F Marçoni Ferreira</Authors>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<ImplicitUsings>disable</ImplicitUsings>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion src/CleanArchMvc.Application/DTOs/ProductDTO.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CleanArchMvc.Domain.Entities;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
Expand Down
2 changes: 0 additions & 2 deletions src/CleanArchMvc.Application/Interfaces/ICategoryService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using CleanArchMvc.Application.DTOs;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Interfaces;

Expand Down
2 changes: 0 additions & 2 deletions src/CleanArchMvc.Application/Interfaces/IProductService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using CleanArchMvc.Application.DTOs;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Interfaces;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using CleanArchMvc.Domain.Entities;
using CleanArchMvc.Domain.Interfaces;
using MediatR;
using System.Threading;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Products.Handlers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
using CleanArchMvc.Domain.Entities;
using CleanArchMvc.Domain.Interfaces;
using MediatR;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Products.Handlers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
using CleanArchMvc.Domain.Entities;
using CleanArchMvc.Domain.Interfaces;
using MediatR;
using System;
using System.Threading;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Products.Handlers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
using CleanArchMvc.Domain.Entities;
using CleanArchMvc.Domain.Interfaces;
using MediatR;
using System;
using System.Threading;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Products.Handlers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
using CleanArchMvc.Domain.Entities;
using CleanArchMvc.Domain.Interfaces;
using MediatR;
using System;
using System.Threading;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Products.Handlers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using CleanArchMvc.Domain.Entities;
using MediatR;
using System.Collections.Generic;

namespace CleanArchMvc.Application.Products.Queries;

Expand Down
2 changes: 0 additions & 2 deletions src/CleanArchMvc.Application/Services/CategoryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using CleanArchMvc.Application.Interfaces;
using CleanArchMvc.Domain.Entities;
using CleanArchMvc.Domain.Interfaces;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Services;

Expand Down
3 changes: 0 additions & 3 deletions src/CleanArchMvc.Application/Services/ProductService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using CleanArchMvc.Application.Products.Commands;
using CleanArchMvc.Application.Products.Queries;
using MediatR;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace CleanArchMvc.Application.Services;

Expand Down
1 change: 0 additions & 1 deletion src/CleanArchMvc.Domain/Entities/Category.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CleanArchMvc.Domain.Validation;
using System.Collections.Generic;

namespace CleanArchMvc.Domain.Entities;

Expand Down
2 changes: 0 additions & 2 deletions src/CleanArchMvc.Domain/Interfaces/ICategoryRepository.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using CleanArchMvc.Domain.Entities;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace CleanArchMvc.Domain.Interfaces;

Expand Down
2 changes: 0 additions & 2 deletions src/CleanArchMvc.Domain/Interfaces/IProductRepository.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using CleanArchMvc.Domain.Entities;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace CleanArchMvc.Domain.Interfaces;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace CleanArchMvc.Domain.Validation;
namespace CleanArchMvc.Domain.Validation;

public class DomainExceptionValidation : Exception
{
Expand Down
2 changes: 0 additions & 2 deletions src/CleanArchMvc.Infra.Data/Repository/CategoryRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using CleanArchMvc.Domain.Interfaces;
using CleanArchMvc.Infra.Data.Context;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace CleanArchMvc.Infra.Data.Repositories;

Expand Down
2 changes: 0 additions & 2 deletions src/CleanArchMvc.Infra.Data/Repository/ProductRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using CleanArchMvc.Domain.Interfaces;
using CleanArchMvc.Infra.Data.Context;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace CleanArchMvc.Infra.Data.Repositories;

Expand Down
1 change: 0 additions & 1 deletion src/CleanArchMvc.WebUI/Controllers/CategoriesController.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using CleanArchMvc.Application.DTOs;
using CleanArchMvc.Application.Interfaces;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace CleanArchMvc.WebUI.Controllers;

Expand Down
1 change: 0 additions & 1 deletion src/CleanArchMvc.WebUI/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace CleanArchMvc.WebUI.Controllers;

Expand Down
3 changes: 0 additions & 3 deletions src/CleanArchMvc.WebUI/Controllers/ProductsController.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using CleanArchMvc.Application.DTOs;
using CleanArchMvc.Application.Interfaces;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.IO;
using System.Threading.Tasks;

namespace CleanArchMvc.WebUI.Controllers;

Expand Down
3 changes: 0 additions & 3 deletions src/CleanArchMvc.WebUI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace CleanArchMvc.WebUI;

public class Program
Expand Down
5 changes: 0 additions & 5 deletions src/CleanArchMvc.WebUI/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using CleanArchMvc.Infra.IoC;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace CleanArchMvc.WebUI;

Expand Down
3 changes: 0 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
<Project>
<Import Project="../Directory.Build.props" />
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion tests/CleanArchMvc.Domain.Tests/ProductUnitTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using CleanArchMvc.Domain.Entities;
using FluentAssertions;
using System;
using Xunit;

namespace CleanArchMvc.Domain.Tests;
Expand Down
3 changes: 0 additions & 3 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
<Project>
<Import Project="../Directory.Build.props" />
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
</Project>

0 comments on commit afa64e1

Please sign in to comment.