Skip to content

Commit

Permalink
Merge pull request #167 from alphacloud/releases/3.2.0
Browse files Browse the repository at this point in the history
version 3.2.0
  • Loading branch information
cd21h authored Aug 1, 2021
2 parents bce7bbd + 012ae37 commit 27040ee
Show file tree
Hide file tree
Showing 14 changed files with 184 additions and 108 deletions.
11 changes: 5 additions & 6 deletions .build/definitions.cake
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// ADDINS
#addin nuget:?package=Cake.Coveralls&version=0.10.2
#addin nuget:?package=Cake.FileHelpers&version=3.3.0
#addin nuget:?package=Cake.Issues&version=0.9.1
#addin nuget:?package=Cake.AppVeyor&version=4.0.0
#addin nuget:?package=Cake.Coveralls&version=1.0.1
#addin nuget:?package=Cake.FileHelpers&version=4.0.1
#addin nuget:?package=Cake.AppVeyor&version=5.0.1

// TOOLS
#tool nuget:?package=GitReleaseManager&version=0.11.0
#tool nuget:?package=GitVersion.CommandLine&version=5.6.4
#tool nuget:?package=GitVersion.CommandLine&version=5.6.8
#tool nuget:?package=coveralls.io&version=1.4.2
#tool nuget:?package=OpenCover&version=4.7.922
#tool nuget:?package=ReportGenerator&version=4.8.4
#tool nuget:?package=ReportGenerator&version=4.8.7


public class CodeCoverageSettings
Expand Down
8 changes: 6 additions & 2 deletions .build/tasks.cake
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,18 @@ Task("CleanPreviousTestResults")
DeleteFile(build.Paths.TestCoverageOutputFile);
DeleteFiles(build.Paths.ArtifactsDir + "/*.trx");
if (DirectoryExists(build.Paths.TestCoverageReportDir))
DeleteDirectory(build.Paths.TestCoverageReportDir, recursive: true);
DeleteDirectory(build.Paths.TestCoverageReportDir, new DeleteDirectorySettings
{
Force = true,
Recursive = true
});
});

Task("GenerateCoverageReport")
.WithCriteria<BuildInfo>((ctx, build) => build.IsLocal)
.Does<BuildInfo>(build =>
{
ReportGenerator(build.Paths.TestCoverageOutputFile, build.Paths.TestCoverageReportDir);
ReportGenerator((FilePath)build.Paths.TestCoverageOutputFile, build.Paths.TestCoverageReportDir);
});

Task("UploadCoverage")
Expand Down
36 changes: 36 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
target-branch: develop
ignore:
- dependency-name: JetBrains.Annotations
versions:
- 2021.1.0
- dependency-name: Microsoft.AspNetCore.TestHost
versions:
- 5.0.3
- 5.0.4
- 5.0.5
- dependency-name: Microsoft.AspNetCore.Mvc.NewtonsoftJson
versions:
- 5.0.3
- 5.0.4
- 5.0.5
- dependency-name: Microsoft.NET.Test.Sdk
versions:
- 16.9.1
- 16.9.4
- dependency-name: Serilog.AspNetCore
versions:
- 4.0.0
- 4.1.0
- dependency-name: Moq
versions:
- 4.16.1
- dependency-name: Serilog.Sinks.Seq
versions:
- 5.0.0
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ environment:
install:
- ps: ./dotnet-install.ps1 -Version 3.1.403 -InstallDir "C:\Program Files\dotnet"
- ps: ./dotnet-install.ps1 -Version 2.1.804 -InstallDir "C:\Program Files\dotnet"
- ps: ./dotnet-install.ps1 -Version 6.0.100-preview.6.21355.2 -InstallDir "C:\Program Files\dotnet"
- ps: dotnet tool install Cake.Tool --version 1.1.0 --global

build_script:
- ps: ./build.ps1
- ps: dotnet-cake

test: off

Expand All @@ -41,7 +43,7 @@ deploy:
- provider: NuGet
name: Pre-release
api_key:
secure: Mug776kbm/x+2nuUeELzQmONvvDpKK1xk18/eeXySdBWT1fKXo9lXEhWILdhWcaE
secure: vueoBsfLKuY1rRYdfX845nolP467aHAZFi5Sj8v5ExITTRE+11Cty4BzGxgWI6oI
on:
branch:
- develop
Expand All @@ -52,6 +54,6 @@ deploy:
- provider: NuGet
name: Tagged release
api_key:
secure: Mug776kbm/x+2nuUeELzQmONvvDpKK1xk18/eeXySdBWT1fKXo9lXEhWILdhWcaE
secure: vueoBsfLKuY1rRYdfX845nolP467aHAZFi5Sj8v5ExITTRE+11Cty4BzGxgWI6oI
on:
appveyor_repo_tag: true
101 changes: 59 additions & 42 deletions dotnet-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,8 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$Channel) {
elseif ($Runtime -eq "aspnetcore") {
$VersionFileUrl = "$UncachedFeed/aspnetcore/Runtime/$Channel/latest.version"
}
# Currently, the WindowsDesktop runtime is manufactured with the .Net core runtime
elseif ($Runtime -eq "windowsdesktop") {
$VersionFileUrl = "$UncachedFeed/Runtime/$Channel/latest.version"
$VersionFileUrl = "$UncachedFeed/WindowsDesktop/$Channel/latest.version"
}
elseif (-not $Runtime) {
$VersionFileUrl = "$UncachedFeed/Sdk/$Channel/latest.version"
Expand Down Expand Up @@ -438,7 +437,16 @@ function Get-Download-Link([string]$AzureFeed, [string]$SpecificVersion, [string
$PayloadURL = "$AzureFeed/aspnetcore/Runtime/$SpecificVersion/aspnetcore-runtime-$SpecificProductVersion-win-$CLIArchitecture.zip"
}
elseif ($Runtime -eq "windowsdesktop") {
# The windows desktop runtime is part of the core runtime layout prior to 5.0
$PayloadURL = "$AzureFeed/Runtime/$SpecificVersion/windowsdesktop-runtime-$SpecificProductVersion-win-$CLIArchitecture.zip"
if ($SpecificVersion -match '^(\d+)\.(.*)$')
{
$majorVersion = [int]$Matches[1]
if ($majorVersion -ge 5)
{
$PayloadURL = "$AzureFeed/WindowsDesktop/$SpecificVersion/windowsdesktop-runtime-$SpecificProductVersion-win-$CLIArchitecture.zip"
}
}
}
elseif (-not $Runtime) {
$PayloadURL = "$AzureFeed/Sdk/$SpecificVersion/dotnet-sdk-$SpecificProductVersion-win-$CLIArchitecture.zip"
Expand Down Expand Up @@ -480,7 +488,16 @@ function Get-Product-Version([string]$AzureFeed, [string]$SpecificVersion) {
$ProductVersionTxtURL = "$AzureFeed/aspnetcore/Runtime/$SpecificVersion/productVersion.txt"
}
elseif ($Runtime -eq "windowsdesktop") {
# The windows desktop runtime is part of the core runtime layout prior to 5.0
$ProductVersionTxtURL = "$AzureFeed/Runtime/$SpecificVersion/productVersion.txt"
if ($SpecificVersion -match '^(\d+)\.(.*)')
{
$majorVersion = [int]$Matches[1]
if ($majorVersion -ge 5)
{
$ProductVersionTxtURL = "$AzureFeed/WindowsDesktop/$SpecificVersion/productVersion.txt"
}
}
}
elseif (-not $Runtime) {
$ProductVersionTxtURL = "$AzureFeed/Sdk/$SpecificVersion/productVersion.txt"
Expand Down Expand Up @@ -885,10 +902,10 @@ Say "Note that the script does not resolve dependencies during installation."
Say "To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install/windows#dependencies"
Say "Installation finished"
# SIG # Begin signature block
# MIIjkgYJKoZIhvcNAQcCoIIjgzCCI38CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# MIIjjwYJKoZIhvcNAQcCoIIjgDCCI3wCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCD2c707qnCLOLIC
# n6Mu5Gr4+Xp68foyZlGlTycnycc5l6CCDYEwggX/MIID56ADAgECAhMzAAABh3IX
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCNsnhcJvx/hXmM
# w8KjuvvIMDBFonhg9XJFc1QwfTyH4aCCDYEwggX/MIID56ADAgECAhMzAAABh3IX
# chVZQMcJAAAAAAGHMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
Expand Down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A4zCuIGQiC8okusVumEpAhhvCEbSiTTTtBdolTnU/CAKui
# oxaU3R9XkKh1F4oAM26+dJ1J2BLQXPs5afNvvedDsZWNQUPK1sFF3JRfzxiTrwBW
# EJRyflev9gyDoqCHzippgb+6+eti1WTkcA9Q49GIT11S6LOAVqkSC9N7Nqf8ksh8
# ARdwT8jigpsm+mj7lrVU9upDkhVYhKeO8oiZq95Q53Zkteo=
# SIG # End signature block
18 changes: 15 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<Project>

<PropertyGroup Label="Common">
<LibraryTargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0</LibraryTargetFrameworks>
<ApplicationTargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5.0;net6.0</ApplicationTargetFrameworks>
</PropertyGroup>

<PropertyGroup Label="Build">
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5</TargetFrameworks>
<TargetFrameworks>$(LibraryTargetFrameworks)</TargetFrameworks>
<SignAssembly>True</SignAssembly>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
Expand All @@ -10,6 +15,7 @@
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<DebugSymbols>True</DebugSymbols>
<DefineConstants>$(DefineConstants);JETBRAINS_ANNOTATIONS</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)'=='Debug' ">
Expand All @@ -26,7 +32,7 @@
<PackageProjectUrl>https://github.com/alphacloud/messagepack-mvc</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>messagepack msgpack formatter alphacloud</PackageTags>
<PackageReleaseNotes>https://github.com/alphacloud/messagepack/releases/tag/0.1.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/alphacloud/messagepack/milestone/12</PackageReleaseNotes>
<Authors>shatl</Authors>
<Company>Alphacloud</Company>
<Description>MessagePack formatters</Description>
Expand All @@ -40,8 +46,14 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition=" '$(MSBuildProjectFullPath.Contains(samples))' == true">
<TargetFrameworks>$(ApplicationTargetFrameworks)</TargetFrameworks>
<NoWarn>$(NoWarn);CS0618;CS1591</NoWarn>
</PropertyGroup>

<PropertyGroup Condition=" '$(MSBuildProjectName.Contains(Tests))' == true ">
<NoWarn>$(NoWarn),CS0618</NoWarn>
<TargetFrameworks>$(ApplicationTargetFrameworks)</TargetFrameworks>
<NoWarn>$(NoWarn);CS0618;CS1591</NoWarn>
<IsTestProject>true</IsTestProject>
<IsPackable>False</IsPackable>
</PropertyGroup>
Expand Down
5 changes: 5 additions & 0 deletions src/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "6.0.100-preview.6.21355.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Build">
<TargetFrameworks>$(ApplicationTargetFrameworks)</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Label="Package">
<PackageTags>messagepack msgpack mvc-core formatter alphacloud</PackageTags>
<Description>MessagePack formatters for ASP.NET Core MVC</Description>
Expand All @@ -18,17 +22,19 @@

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="System.IO.Pipelines" Version="4.7.3" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5'">
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="System.IO.Pipelines" Version="5.0.1" />
</ItemGroup>

<ItemGroup Label="Package References">
<PackageReference Include="JetBrains.Annotations" Version="2020.3.0" PrivateAssets="All" />
<PackageReference Include="MessagePack" Version="[2.2.85, 3.0.0)" />
<PackageReference Include="JetBrains.Annotations" Version="2021.2.0" />
<PackageReference Include="MessagePack" Version="[2.3.75, 3.0.0)" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context)
return MessagePackSerializer.SerializeAsync(context.ObjectType, context.HttpContext.Response.Body, context.Object, _options,
context.HttpContext.RequestAborted);
}
#elif NETCOREAPP3_1 || NET5_0
#elif NETCOREAPP3_1 || NET5_0 || NET6_0
/// <inheritdoc />
public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Build">
<TargetFrameworks>netstandard2.0;netstandard2.1;net5</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Label="Package">
<PackageTags>messagepack msgpack webapi formatter serialization webapi-client alphacloud</PackageTags>
<Description>MessagePack formatters for WebApi client (Microsoft.AspNet.WebApi.Client).</Description>
Expand All @@ -13,17 +9,9 @@
<Compile Include="..\..\common\AssemblyVersion.cs" Link="AssemblyVersion.cs" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="System.Collections.Immutable" Version="1.7.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5'">
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
</ItemGroup>

<ItemGroup Label="Package References">
<PackageReference Include="JetBrains.Annotations" Version="2020.3.0" PrivateAssets="All" />
<PackageReference Include="MessagePack" Version="[2.2.85, 3.0.0)" />
<PackageReference Include="JetBrains.Annotations" Version="2021.2.0" />
<PackageReference Include="MessagePack" Version="[2.3.75, 3.0.0)" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="[5.2.7, 6.0.0)" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
Expand Down
Loading

0 comments on commit 27040ee

Please sign in to comment.