Skip to content

Commit 59a55d6

Browse files
committed
Migrate to .NET6
1 parent 88677d1 commit 59a55d6

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup .NET
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 5.0.x
19+
dotnet-version: 6.0.x
2020
- name: Restore dependencies
2121
run: dotnet restore
2222
- name: Build

LinkDotNet.Blog.IntegrationTests/LinkDotNet.Blog.IntegrationTests.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
5-
4+
<TargetFramework>net6.0</TargetFramework>
65
<IsPackable>false</IsPackable>
76
</PropertyGroup>
87

98
<ItemGroup>
109
<PackageReference Include="bunit" Version="1.2.49" />
1110
<PackageReference Include="FluentAssertions" Version="6.1.0" />
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.9" />
11+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.0-preview.7.21378.4" />
1312
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
1413
<PackageReference Include="Moq" Version="4.16.1" />
1514
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.28.0.36354">

LinkDotNet.Blog.IntegrationTests/Web/Pages/IndexTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using FluentAssertions;
55
using LinkDotNet.Blog.TestUtilities;
66
using LinkDotNet.Blog.Web;
7-
using LinkDotNet.Blog.Web.Pages;
87
using LinkDotNet.Blog.Web.Shared;
98
using LinkDotNet.Blog.Web.Shared.Services;
109
using LinkDotNet.Domain;
@@ -14,6 +13,8 @@
1413
using Toolbelt.Blazor.HeadElement;
1514
using Xunit;
1615

16+
using Index = LinkDotNet.Blog.Web.Pages.Index;
17+
1718
namespace LinkDotNet.Blog.IntegrationTests.Web.Pages
1819
{
1920
public class IndexTests : SqlDatabaseTestBase<BlogPost>

LinkDotNet.Blog.TestUtilities/LinkDotNet.Blog.TestUtilities.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

LinkDotNet.Blog.UnitTests/LinkDotNet.Blog.UnitTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

99
<ItemGroup>
1010
<PackageReference Include="bunit" Version="1.2.49" />
1111
<PackageReference Include="FluentAssertions" Version="6.1.0" />
12-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
12+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0-preview.7.21377.19" />
1313
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
1414
<PackageReference Include="Moq" Version="4.16.1" />
1515
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.28.0.36354">

LinkDotNet.Blog.Web/LinkDotNet.Blog.Web.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<UserSecretsId>aspnet-LinkDotNet.Blog.Web-31CD57F3-BF63-48F3-96A7-22DFD9D6A7F0</UserSecretsId>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<PackageReference Include="Blazored.Toast" Version="3.1.2" />
1010
<PackageReference Include="Markdig" Version="0.26.0" />
11-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="5.0.9" />
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.9" />
13-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.9" />
11+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0-preview.7.21378.6" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.0-preview.7.21378.4" />
13+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0-preview.7.21378.4" />
1414
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.28.0.36354">
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

LinkDotNet.Domain/LinkDotNet.Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<Nullable>disable</Nullable>
66
</PropertyGroup>
77

LinkDotNet.Infrastructure/LinkDotNet.Infrastructure.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.9" />
8+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0-preview.7.21378.4" />
99
<PackageReference Include="RavenDB.Client" Version="5.2.2" />
1010
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.28.0.36354">
1111
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)