Skip to content

Commit

Permalink
.NET 5 update (#112)
Browse files Browse the repository at this point in the history
* .NET 5 update
* Update nuget packages
  • Loading branch information
petervandenhout authored Jan 9, 2021
1 parent c9e0acc commit 4338c83
Show file tree
Hide file tree
Showing 16 changed files with 377 additions and 328 deletions.
12 changes: 6 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ steps:
version: '3.1.200'

# https://dotnet.microsoft.com/download/dotnet/5.0
# - task: UseDotNet@2
# displayName: Install .Net Core 5.0.101
# inputs:
# packageType: 'sdk'
# version: '5.0.101'
- task: UseDotNet@2
displayName: Install .Net Core 5.0.101
inputs:
packageType: 'sdk'
version: '5.0.101'

- script: |
echo buildConfiguration: $(buildConfiguration)
Expand Down Expand Up @@ -76,7 +76,7 @@ steps:
publishWebProjects: false
projects: |
**/samples/Opw.PineBlog.Sample/*.csproj
arguments: '--configuration $(buildConfiguration) --framework netcoreapp3.1 --output $(build.artifactstagingdirectory) /p:Version=$(GitVersion.SemVer) --no-build'
arguments: '--configuration $(buildConfiguration) --framework net5.0 --output $(build.artifactstagingdirectory) /p:Version=$(GitVersion.SemVer) --no-build'
zipAfterPublish: false

# Delete the "Areas" folder, this should not be deployed
Expand Down
14 changes: 11 additions & 3 deletions samples/Opw.PineBlog.Sample.NuGet/Opw.PineBlog.Sample.NuGet.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand All @@ -14,14 +14,22 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.2" />
<PackageReference Include="Opw.PineBlog" Version="2.0.0-beta0001" />
<PackageReference Include="Opw.PineBlog.MongoDb" Version="2.0.0-beta0001" />
<PackageReference Include="Mongo2Go" Version="2.2.16" />
<PackageReference Include="WaffleGenerator" Version="4.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="5.0.1" />
</ItemGroup>

<ItemGroup>
<Content Update="wwwroot\favicon.ico">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
Expand Down
59 changes: 33 additions & 26 deletions samples/Opw.PineBlog.Sample/Opw.PineBlog.Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\post-pineblog-demo-markdown.md" />
<None Remove="Resources\post-pineblog-demo-website.md" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Resources\post-pineblog-demo-markdown.md" />
<EmbeddedResource Include="Resources\post-pineblog-demo-website.md" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.16.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.1.2" />
<PackageReference Include="Mongo2Go" Version="2.2.16" />
<PackageReference Include="WaffleGenerator" Version="4.2.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\ref\Opw.PineBlog\Opw.PineBlog.csproj" />
<ProjectReference Include="..\..\src\Opw.PineBlog.MongoDb\Opw.PineBlog.MongoDb.csproj" />
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\post-pineblog-demo-markdown.md" />
<None Remove="Resources\post-pineblog-demo-website.md" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Resources\post-pineblog-demo-markdown.md" />
<EmbeddedResource Include="Resources\post-pineblog-demo-website.md" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.16.0" />
<PackageReference Include="Mongo2Go" Version="2.2.16" />
<PackageReference Include="WaffleGenerator" Version="4.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.1.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="5.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\ref\Opw.PineBlog\Opw.PineBlog.csproj" />
<ProjectReference Include="..\..\src\Opw.PineBlog.MongoDb\Opw.PineBlog.MongoDb.csproj" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion samples/Opw.PineBlog.Sample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseDatabaseErrorPage();
}
else
{
Expand Down
24 changes: 12 additions & 12 deletions src/Opw.AspNetCore.Testing/Opw.AspNetCore.Testing.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App"></FrameworkReference>
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App"></FrameworkReference>
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.Net.Http.Headers" Version="2.2.8" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.Net.Http.Headers" Version="2.2.8" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

</Project>
16 changes: 8 additions & 8 deletions src/Opw.PineBlog.Abstractions/Opw.PineBlog.Abstractions.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Opw.PineBlog</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Opw.PineBlog</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Opw.Core" Version="1.3.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Opw.Core" Version="1.4.1" />
</ItemGroup>

</Project>
63 changes: 33 additions & 30 deletions src/Opw.PineBlog.Core/Opw.PineBlog.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Opw.PineBlog</RootNamespace>
<Description>PineBlog core package.</Description>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>Opw.PineBlog.Core</PackageId>
<PackageTags>blog core</PackageTags>
<NuspecFile>Opw.PineBlog.Core.nuspec</NuspecFile>
<NuspecProperties>version=$(PackageVersion)</NuspecProperties>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Opw.PineBlog</RootNamespace>
<Description>PineBlog core package.</Description>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>Opw.PineBlog.Core</PackageId>
<PackageTags>blog core</PackageTags>
<NuspecFile>Opw.PineBlog.Core.nuspec</NuspecFile>
<NuspecProperties>version=$(PackageVersion)</NuspecProperties>
</PropertyGroup>

<ItemGroup>
<Compile Remove="Files\Azure\_namespace.cs" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Files\Azure\_namespace.cs" />
</ItemGroup>

<ItemGroup>
<None Include="Files\Azure\_namespace.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Files\Azure\_namespace.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Markdig" Version="0.22.1" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.1.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.2" />
<PackageReference Include="MimeMapping" Version="1.0.1.30" />
<PackageReference Include="System.ServiceModel.Syndication" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Markdig" Version="0.22.1" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.1.3" />
<PackageReference Include="MimeMapping" Version="1.0.1.30" />
<PackageReference Include="System.ServiceModel.Syndication" Version="4.7.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Opw.PineBlog.Abstractions\Opw.PineBlog.Abstractions.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Opw.PineBlog.Abstractions\Opw.PineBlog.Abstractions.csproj" />
</ItemGroup>

</Project>
67 changes: 34 additions & 33 deletions src/Opw.PineBlog.Core/Opw.PineBlog.Core.nuspec
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>Opw.PineBlog.Core</id>
<version>0.0.0</version>
<authors>Of Pine Wood</authors>
<owners>Of Pine Wood</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://github.com/ofpinewood/pineblog/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/ofpinewood/pineblog</projectUrl>
<iconUrl>https://github.com/ofpinewood/pineblog/blob/master/pineblog-logo-256x256.gif?raw=true</iconUrl>
<description>PineBlog core package.</description>
<tags>blog core</tags>
<repository type="git" url="https://github.com/ofpinewood/pineblog" />
<dependencies>
<group targetFramework=".NETStandard2.1">
<!-- Opw.PineBlog.Core -->
<dependency id="Markdig" version="0.22.1" exclude="Build,Analyzers" />
<dependency id="MediatR.Extensions.Microsoft.DependencyInjection" version="8.0.0" exclude="Build,Analyzers" />
<dependency id="Microsoft.AspNetCore.Http.Abstractions" version="2.2.0" exclude="Build,Analyzers" />
<dependency id="Microsoft.Extensions.DependencyInjection" version="3.1.2" />
<dependency id="Microsoft.Extensions.Options" version="3.1.2" exclude="Build,Analyzers" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="3.1.2" exclude="Build,Analyzers" />
<dependency id="MimeMapping" version="1.0.1.30" exclude="Build,Analyzers" />
<dependency id="Microsoft.Azure.Storage.Blob" version="11.1.3" exclude="Build,Analyzers" />
<dependency id="System.ServiceModel.Syndication" version="4.7.0" exclude="Build,Analyzers" />
<metadata>
<id>Opw.PineBlog.Core</id>
<version>0.0.0</version>
<authors>Of Pine Wood</authors>
<owners>Of Pine Wood</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://github.com/ofpinewood/pineblog/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/ofpinewood/pineblog</projectUrl>
<iconUrl>https://github.com/ofpinewood/pineblog/blob/master/pineblog-logo-256x256.gif?raw=true</iconUrl>
<description>PineBlog core package.</description>
<tags>blog core</tags>
<repository type="git" url="https://github.com/ofpinewood/pineblog" />
<dependencies>
<group targetFramework=".NETStandard2.1">
<!-- Opw.PineBlog.Core -->
<dependency id="Markdig" version="0.22.1" exclude="Build,Analyzers" />
<dependency id="MediatR.Extensions.Microsoft.DependencyInjection" version="8.0.0" exclude="Build,Analyzers" />
<dependency id="Microsoft.AspNetCore.Http.Abstractions" version="2.2.0" exclude="Build,Analyzers" />
<dependency id="MimeMapping" version="1.0.1.30" exclude="Build,Analyzers" />
<dependency id="Microsoft.Azure.Storage.Blob" version="11.1.3" exclude="Build,Analyzers" />
<dependency id="System.ServiceModel.Syndication" version="4.7.0" exclude="Build,Analyzers" />

<!-- Opw.PineBlog.Abstractions -->
<dependency id="Opw.Core" version="1.3.0" exclude="Build,Analyzers" />
</group>
</dependencies>
</metadata>
<files>
<file src="bin\Release\netstandard2.1\*.dll" target="lib\netstandard2.1\"/>
<file src="bin\Release\netstandard2.1\*.xml" target="lib\netstandard2.1\"/>
</files>
<dependency id="Microsoft.Extensions.DependencyInjection" version="3.1.2" />
<dependency id="Microsoft.Extensions.Options" version="3.1.2" exclude="Build,Analyzers" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="3.1.2" exclude="Build,Analyzers" />

<!-- Opw.PineBlog.Abstractions -->
<dependency id="Opw.Core" version="1.4.1" exclude="Build,Analyzers" />
</group>
</dependencies>
</metadata>
<files>
<file src="bin\Release\netstandard2.1\*.dll" target="lib\netstandard2.1\"/>
<file src="bin\Release\netstandard2.1\*.xml" target="lib\netstandard2.1\"/>
</files>
</package>
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Description>PineBlog data provider that uses Entity Framework Core.</Description>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>Opw.PineBlog.EntityFrameworkCore</PackageId>
<PackageTags>blog efcore entityframeworkcore</PackageTags>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Description>PineBlog data provider that uses Entity Framework Core.</Description>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>Opw.PineBlog.EntityFrameworkCore</PackageId>
<PackageTags>blog efcore entityframeworkcore</PackageTags>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.2" />
<PackageReference Include="Opw.EntityFrameworkCore" Version="1.3.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Opw.EntityFrameworkCore" Version="1.4.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Opw.PineBlog.Core\Opw.PineBlog.Core.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Opw.PineBlog.Core\Opw.PineBlog.Core.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit 4338c83

Please sign in to comment.