Skip to content

Commit

Permalink
Updating project to .net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateus Mannes De Medeiros committed Mar 6, 2024
1 parent 67d84c6 commit 6c8805e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master_todoapp-mateus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
dotnet-version: '8.0.x'
include-prerelease: true

- name: Build with dotnet
Expand Down
6 changes: 3 additions & 3 deletions TodoApp.sln
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32319.34
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TodoApp", "src\TodoApp.csproj", "{78A020F7-C44D-4B52-A390-27D034EB45B0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TodoApp", "src\TodoApp.csproj", "{78A020F7-C44D-4B52-A390-27D034EB45B0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TodoApp.Tests", "test\TodoApp.Tests.csproj", "{50A70FB2-8B48-422C-AFC6-8BD0BFC04C38}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TodoApp.Tests", "test\TodoApp.Tests.csproj", "{50A70FB2-8B48-422C-AFC6-8BD0BFC04C38}"
EndProject
Global
GlobalSection(SolutionProperties) = preSolution
Expand Down
21 changes: 6 additions & 15 deletions src/TodoApp.csproj
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<None Remove="app.db" />
</ItemGroup>

<ItemGroup>
<Content Include="app.db">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="12.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.10">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="microsoft.entityframeworkcore.sqlite" Version="6.0.1" />
<PackageReference Include="SecureIdentity" Version="1.0.4" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.2" />
<PackageReference Include="microsoft.entityframeworkcore.sqlite" Version="8.0.2" />
</ItemGroup>

</Project>
</Project>
11 changes: 3 additions & 8 deletions test/TodoApp.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EntityFramework" Version="6.4.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
<PackageReference Include="EntityFramework" Version="6.4.4" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\src\TodoApp.csproj" />
</ItemGroup>

</Project>
</Project>

0 comments on commit 6c8805e

Please sign in to comment.