Skip to content

Commit 4e2e81a

Browse files
committed
Ported Blog sample (#326)
1 parent 6e581e8 commit 4e2e81a

File tree

12 files changed

+30
-27
lines changed

12 files changed

+30
-27
lines changed

samples/ApplicationParts/ApplicationParts.Controllers/ApplicationParts.Controllers.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-
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<AssemblyName>ApplicationParts.Controllers</AssemblyName>
66
<PackageId>ApplicationParts.Controllers</PackageId>
77
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>

samples/ApplicationParts/ApplicationParts.Models/ApplicationParts.Models.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-
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<AssemblyName>ApplicationParts.Models</AssemblyName>
66
<PackageId>ApplicationParts.Models</PackageId>
77
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>

samples/ApplicationParts/ApplicationParts.Services/ApplicationParts.Services.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-
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<AssemblyName>ApplicationParts.Services</AssemblyName>
66
<PackageId>ApplicationParts.Services</PackageId>
77
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>

samples/ApplicationParts/ApplicationParts.Test/ApplicationParts.Test.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
5-
<PreserveCompilationContext>true</PreserveCompilationContext>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
65
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
76
</PropertyGroup>
87

samples/ApplicationParts/ApplicationParts.Web/ApplicationParts.Web.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-
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<AssemblyName>ApplicationParts.Web</AssemblyName>
66
<UserSecretsId>aspnet-ApplicationParts.Web-c273a372-79ef-490d-b0e1-a7fb8f2dacc7</UserSecretsId>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

samples/Blog/Blog.Controllers/Blog.Controllers.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.*" />
9+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
1010
</ItemGroup>
1111

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

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="2.2.*" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.2.6" />
9+
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-*" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-*" />
1111
</ItemGroup>
1212

1313
</Project>

samples/Blog/Blog.Services/Blog.Services.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>netstandard2.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
</PropertyGroup>
77

samples/Blog/Blog.Test/Blog.Test.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.2</TargetFramework>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
</PropertyGroup>
77

@@ -16,10 +16,9 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="Microsoft.AspNetCore.App" />
20-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
19+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0-*" />
2120
<PackageReference Include="Moq" Version="4.12.0" />
22-
<PackageReference Include="Shouldly" Version="3.0.2" />
21+
<PackageReference Include="Shouldly" Version="4.0.0-*" />
2322
<PackageReference Include="xunit" Version="2.4.1" />
2423
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
2524
<PrivateAssets>all</PrivateAssets>

samples/Blog/Blog.Web/Blog.Web.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.2</TargetFramework>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<UserSecretsId>aspnet-Blog.Web-6757ED6F-7F48-4961-917B-ADA8F5DEAFB4</UserSecretsId>
66
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
12-
<PackageReference Include="Microsoft.AspNetCore.App" />
13-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" />
12+
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-*" />
13+
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0-*" />
14+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0-*" />
1415
</ItemGroup>
1516

1617
<ItemGroup>

0 commit comments

Comments
 (0)