Skip to content

Commit 57276b0

Browse files
authored
Merge pull request #266 from msgpack/fix/#227
Add ValueTuple support
2 parents b9c4903 + 6889b2a commit 57276b0

File tree

43 files changed

+2278
-400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2278
-400
lines changed

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,3 +728,9 @@ Relase 1.0.0-beta2 (T.B.D.)
728728

729729
CHANGES
730730
* Xamarin builds are now integrated to .NET Standard 2.0.
731+
732+
NEW FEATURES
733+
* ValueTuple support. #277
734+
735+
IMPROVEMENTS
736+
* System.Tuple<T> detection now ignores their declaring assemblies.

MsgPack.Common.props

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,23 @@
4343
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).XML</DocumentationFile>
4444
</PropertyGroup>
4545
<PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0'">
46+
<DebugType>pdbonly</DebugType>
4647
<DefineConstants>$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT</DefineConstants>
4748
</PropertyGroup>
4849
<PropertyGroup Condition="'$(TargetFramework)' == 'net35'">
50+
<DebugType>pdbonly</DebugType>
4951
<DefineConstants>$(DefineConstants);FEATURE_POINTER_CONVERSION</DefineConstants>
5052
</PropertyGroup>
5153
<PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
54+
<DebugType>pdbonly</DebugType>
5255
<DefineConstants>$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT;FEATURE_POINTER_CONVERSION</DefineConstants>
5356
</PropertyGroup>
5457
<PropertyGroup Condition="'$(TargetFramework)' == 'net46'">
58+
<DebugType>pdbonly</DebugType>
59+
<DefineConstants>$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT;FEATURE_POINTER_CONVERSION;FEATURE_MEMCOPY</DefineConstants>
60+
</PropertyGroup>
61+
<PropertyGroup Condition="'$(TargetFramework)' == 'net47'">
62+
<DebugType>pdbonly</DebugType>
5563
<DefineConstants>$(DefineConstants);FEATURE_TAP;FEATURE_CONCURRENT;FEATURE_POINTER_CONVERSION;FEATURE_MEMCOPY</DefineConstants>
5664
</PropertyGroup>
5765
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.1'">
@@ -79,4 +87,7 @@
7987
<PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0'">
8088
<DefineConstants>$(DefineConstants);NETFX_CORE;WINDOWS_UWP;NETSTANDARD1_3;AOT</DefineConstants>
8189
</PropertyGroup>
90+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
91+
<DebugType>full</DebugType>
92+
</PropertyGroup>
8293
</Project>

appveyor-debug.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ environment:
1313
install:
1414
- cmd: >-
1515
cd .\build
16-
17-
UpdateAndroidSdk.cmd
1816
- ps: >-
1917
./SetBuildEnv.ps1
2018

appveyor-release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ environment:
1818
install:
1919
- cmd: >-
2020
cd .\build
21-
22-
UpdateAndroidSdk.cmd
2321
- ps: >-
2422
./SetBuildEnv.ps1
2523

build/Build.ps1

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,8 @@ else
3434
Write-Error "Failed to locate MSBuild.exe which can build .NET Core and .NET 3.5. VS2017 is required."
3535
exit 1
3636
}
37-
38-
# Ensure Android SDK for API level 10 is installed.
39-
# Thanks to https://github.com/googlesamples/android-ndk/pull/80
40-
41-
[string]$env:ANDROID_HOME = "$env:localappdata/Android/android-sdk/"
42-
43-
if ( !( Test-Path "$env:ANDROID_HOME/tools/android.bat" ) )
44-
{
45-
Write-Error "Android SDK is required."
46-
exit 1
47-
}
4837

4938
./SetBuildEnv.ps1
50-
if ( $env:SKIP_ANDROID_SDK_UPDATE -ne "True" )
51-
{
52-
./UpdateAndroidSdk.cmd
53-
}
5439
}
5540

5641
[string]$buildConfig = 'Release'
@@ -73,6 +58,8 @@ if( $Rebuild )
7358
$buildOptions += "/p:Configuration=${buildConfig}"
7459
$restoreOptions = "/v:minimal"
7560

61+
Write-Host "Clean up directories..."
62+
7663
# Unity
7764
if ( !( Test-Path "./MsgPack-CLI" ) )
7865
{
@@ -103,41 +90,63 @@ if ( !( Test-Path "./MsgPack-CLI/mpu" ) )
10390
}
10491

10592
# build
93+
94+
Write-Host "Restore $sln packages..."
95+
10696
& $msbuild /t:restore $sln $restoreOptions
10797
if ( $LastExitCode -ne 0 )
10898
{
10999
Write-Error "Failed to restore $sln"
110100
exit $LastExitCode
111101
}
112102

103+
Write-Host "Build $sln..."
104+
113105
& $msbuild $sln $buildOptions
114106
if ( $LastExitCode -ne 0 )
115107
{
116108
Write-Error "Failed to build $sln"
117109
exit $LastExitCode
118110
}
119111

112+
Write-Host "Restore $slnCompat packages..."
113+
120114
& $msbuild /t:restore $slnCompat $restoreOptions
121115
if ( $LastExitCode -ne 0 )
122116
{
123117
Write-Error "Failed to restore $slnCompat"
124118
exit $LastExitCode
125119
}
126120

121+
Write-Host "Build $slnCompat..."
122+
127123
& $msbuild $slnCompat $buildOptions
128124
if ( $LastExitCode -ne 0 )
129125
{
130126
Write-Error "Failed to build $slnCompat"
131127
exit $LastExitCode
132128
}
133129

134-
& $msbuild /t:restore $slnWindows $restoreOptions
130+
Write-Host "Restore $slnWindows packages..."
131+
132+
if ( $env:APPVEYOR -eq "True" )
133+
{
134+
# Use nuget for legacy environments.
135+
nuget restore $slnWindows -Verbosity quiet
136+
}
137+
else
138+
{
139+
& $msbuild /t:restore $slnWindows $restoreOptions
140+
}
141+
135142
if ( $LastExitCode -ne 0 )
136143
{
137144
Write-Error "Failed to restore $slnWindows"
138145
exit $LastExitCode
139146
}
140147

148+
Write-Host "Build $slnWindows..."
149+
141150
& $msbuild $slnWindows $buildOptions
142151
if ( $LastExitCode -ne 0 )
143152
{
@@ -147,6 +156,8 @@ if ( $LastExitCode -ne 0 )
147156

148157
if ( $buildConfig -eq 'Release' )
149158
{
159+
Write-Host "Build NuGet packages..."
160+
150161
& $msbuild ../src/MsgPack/MsgPack.csproj /t:pack /v:minimal /p:Configuration=$buildConfig /p:IncludeSource=true /p:NuspecProperties=version=$env:PackageVersion
151162

152163
Move-Item ../bin/*.nupkg ../dist/

src/MsgPack.Uwp/project.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@
5050
"../MsgPack/Serialization/Tracer.cs"
5151
],
5252
"dependencies": {
53-
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
54-
"System.Collections.NonGeneric": "4.0.1",
55-
"System.Collections.Specialized": "4.0.1"
53+
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.3",
54+
"System.Collections.NonGeneric": "4.3.0",
55+
"System.Collections.Specialized": "4.3.0",
56+
"System.Diagnostics.Contracts": "4.3.0",
57+
"System.Net.NameResolution": "4.3.0",
58+
"System.Net.Primitives": "4.3.0",
59+
"System.Runtime.WindowsRuntime" : "4.3.0",
60+
"System.Threading.Overlapped": "4.3.0",
61+
"Microsoft.Win32.Primitives": "4.3.0"
5662
},
5763
"frameworks": {
5864
"uap10.0": {}

0 commit comments

Comments
 (0)