Skip to content

Commit 8fcb170

Browse files
committed
upgrade to .net 6
1 parent 4c8cb74 commit 8fcb170

File tree

8 files changed

+12
-10
lines changed

8 files changed

+12
-10
lines changed

Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22
<PropertyGroup>
3-
<AspNetCoreVersion>5.0.0</AspNetCoreVersion>
4-
<BlazorVersion>5.0.0</BlazorVersion>
5-
<EntityFrameworkVersion>5.0.0</EntityFrameworkVersion>
6-
<SystemNetHttpJsonVersion>5.0.0</SystemNetHttpJsonVersion>
3+
<AspNetCoreVersion>6.0.0-rc.1.21452.15</AspNetCoreVersion>
4+
<BlazorVersion>6.0.0-rc.1.21452.15</BlazorVersion>
5+
<EntityFrameworkVersion>6.0.0-rc.1.21452.10</EntityFrameworkVersion>
6+
<SystemNetHttpJsonVersion>6.0.0-rc.1.21451.13</SystemNetHttpJsonVersion>
77
</PropertyGroup>
88
</Project>

src/BlazingComponents/BlazingComponents.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.Razor">
22

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

77
<ItemGroup>

src/BlazingPizza.Client/BlazingPizza.Client.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.BlazorWebAssembly">
22

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

77
<ItemGroup>

src/BlazingPizza.ComponentsLibrary/BlazingPizza.ComponentsLibrary.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.Razor">
22

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

77
<ItemGroup>

src/BlazingPizza.Server/BlazingPizza.Server.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.Web">
22

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

77
<ItemGroup>

src/BlazingPizza.Server/PizzaStoreContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using IdentityServer4.EntityFramework.Options;
1+
using Duende.IdentityServer.EntityFramework.Options;
22
using Microsoft.AspNetCore.ApiAuthorization.IdentityServer;
33
using Microsoft.EntityFrameworkCore;
44
using Microsoft.Extensions.Options;

src/BlazingPizza.Server/SpecialsController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.Diagnostics.CodeAnalysis;
23
using System.Linq;
34
using System.Threading.Tasks;
45
using Microsoft.AspNetCore.Mvc;
@@ -20,6 +21,7 @@ public SpecialsController(PizzaStoreContext db)
2021
[HttpGet]
2122
public async Task<ActionResult<List<PizzaSpecial>>> GetSpecials()
2223
{
24+
var foo = _db.Specials.ToList();
2325
return (await _db.Specials.ToListAsync()).OrderByDescending(s => s.BasePrice).ToList();
2426
}
2527
}

src/BlazingPizza.Shared/BlazingPizza.Shared.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
<RootNamespace>BlazingPizza</RootNamespace>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)