Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b02c65

Browse files
upgrade to .net 5
1 parent 816b060 commit 4b02c65

File tree

11 files changed

+34
-42
lines changed

11 files changed

+34
-42
lines changed

‎src/AspnetRun.Application/AspnetRun.Application.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>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="AutoMapper" Version="9.0.0" />
8+
<PackageReference Include="AutoMapper" Version="10.1.1" />
99
</ItemGroup>
1010

1111
<ItemGroup>
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>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
</PropertyGroup>
66

77
</Project>

‎src/AspnetRun.Infrastructure/AspnetRun.Infrastructure.csproj

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

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

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.0">
8+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.0" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.0">
1010
<PrivateAssets>all</PrivateAssets>
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1212
</PackageReference>
13-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0" />
14-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.0" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0">
13+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.0" />
14+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.0" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.0">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1818
</PackageReference>

‎src/AspnetRun.Infrastructure/Data/AspnetRunContext.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ private void ConfigureProduct(EntityTypeBuilder<Product> builder)
2323
{
2424
builder.ToTable("Product");
2525

26-
builder.HasKey(ci => ci.Id);
27-
28-
builder.Property(ci => ci.Id)
29-
.ForSqlServerUseSequenceHiLo("aspnetrun_type_hilo")
30-
.IsRequired();
26+
builder.HasKey(ci => ci.Id);
3127

3228
builder.Property(cb => cb.ProductName)
3329
.IsRequired()
@@ -38,11 +34,7 @@ private void ConfigureCategory(EntityTypeBuilder<Category> builder)
3834
{
3935
builder.ToTable("Category");
4036

41-
builder.HasKey(ci => ci.Id);
42-
43-
builder.Property(ci => ci.Id)
44-
.ForSqlServerUseSequenceHiLo("aspnetrun_type_hilo")
45-
.IsRequired();
37+
builder.HasKey(ci => ci.Id);
4638

4739
builder.Property(cb => cb.CategoryName)
4840
.IsRequired()

‎src/AspnetRun.Web/AspnetRun.Web.csproj

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

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

77
<ItemGroup>
8-
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
9-
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.1.3" />
8+
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.0" />
9+
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="5.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

‎src/AspnetRun.Web/Mapper/AspnetRunProfile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public class AspnetRunProfile : Profile
88
{
99
public AspnetRunProfile()
1010
{
11-
CreateMap<ProductModel, ProductViewModel>();
12-
CreateMap<CategoryModel, CategoryViewModel>();
11+
CreateMap<ProductModel, ProductViewModel>().ReverseMap();
12+
CreateMap<CategoryModel, CategoryViewModel>().ReverseMap();
1313
}
1414
}
1515
}

‎src/AspnetRun.Web/Pages/Index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
</p>
1616

1717
<p>
18-
You can check full documentation and step by step development of 100+ page eBook PDF from here - <strong><a href="http://www.aspnetrun.com/Book">http://www.aspnetrun.com/Book</a></strong>
18+
You can check full documentation and step by step development of 100+ page eBook PDF from here - <strong><a href="https://aspnetrun.azurewebsites.net/">https://aspnetrun.azurewebsites.net/</a></strong>
1919
</p>
2020

2121
<p>
2222
ASP.NET Run is a general purpose starter kit application specially designed for new modern web applications. It uses already familiar tools and implements best practices around them to provide you a SOLID development experience. This repository focused on traditional Web Application Development with a single deployment.
2323
</p>
2424

2525
<p>
26-
The goal for this boilerplate is to demonstrate some of the principles and patterns described in the eBook. Also there is a sample project which is implemented this repository and build sample of eCommerce reference application, you can check this repo in this location : <strong><a href="https://github.com/aspnetrun/run-core-sample">run-core-sample</a></strong>
26+
The goal for this boilerplate is to demonstrate some of the principles and patterns described in the eBook. Also there is a sample project which is implemented this repository and build sample of eCommerce reference application, you can check this repo in this location : <strong><a href="https://github.com/aspnetrun/run-aspnetcore-realworld">run-aspnetcore-realworld</a></strong>
2727
</p>

‎test/AspnetRun.Application.Tests/AspnetRun.Application.Tests.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">
22

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

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

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
11-
<PackageReference Include="Moq" Version="4.13.1" />
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
11+
<PackageReference Include="Moq" Version="4.15.1" />
1212
<PackageReference Include="xunit" Version="2.4.1" />
13-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
13+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>

‎test/AspnetRun.Core.Tests/AspnetRun.Core.Tests.csproj

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

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

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

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
1111
<PackageReference Include="xunit" Version="2.4.1" />
12-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
12+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>

‎test/AspnetRun.Infrastructure.Tests/AspnetRun.Infrastructure.Tests.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">
22

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

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

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.0" />
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.0" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
1212
<PackageReference Include="xunit" Version="2.4.1" />
13-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
13+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /