Skip to content

Commit 05da9cb

Browse files
Merge pull request #17 from FabianGosebrink/updating-to-dot-net-7
Updated to .net 7
2 parents fd6ad28 + bab1020 commit 05da9cb

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
- name: Setup .NET Core
1313
uses: actions/setup-dotnet@v2
1414
with:
15-
dotnet-version: '6.0.x'
15+
dotnet-version: '7.0.x'
1616
- name: Build with dotnet
1717
run: dotnet build --configuration Release

SampleWebApiAspNetCore/ConfigureSwaggerOptions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Microsoft.AspNetCore.Mvc.ApiExplorer;
2-
using Microsoft.Extensions.DependencyInjection;
32
using Microsoft.Extensions.Options;
43
using Microsoft.OpenApi.Models;
54
using Swashbuckle.AspNetCore.SwaggerGen;

SampleWebApiAspNetCore/Controllers/v1/FoodsController.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
using SampleWebApiAspNetCore.Models;
99
using SampleWebApiAspNetCore.Repositories;
1010
using System.Text.Json;
11-
using System;
12-
using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
1311

1412
namespace SampleWebApiAspNetCore.Controllers.v1
1513
{

SampleWebApiAspNetCore/Repositories/FoodSqlRepository.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
using SampleWebApiAspNetCore.Entities;
22
using SampleWebApiAspNetCore.Helpers;
33
using SampleWebApiAspNetCore.Models;
4-
using System;
5-
using System.Collections.Generic;
6-
using System.Linq;
74
using System.Linq.Dynamic.Core;
85

96
namespace SampleWebApiAspNetCore.Repositories
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="AutoMapper" Version="11.0.1" />
11-
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
12-
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.8" />
10+
<PackageReference Include="AutoMapper" Version="12.0.1" />
11+
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
12+
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.2" />
1313
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />
1414
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.8" />
16-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
17-
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.19" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.2" />
16+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
17+
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.24" />
1818
</ItemGroup>
1919

2020
</Project>

0 commit comments

Comments
 (0)