Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 8952bad

Browse files
committed
Merge pull request #2180 from dotnet-bot/from-tfs
Merge changes from TFS
2 parents d586909 + b30195c commit 8952bad

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

src/System.IO.Compression/src/System.IO.Compression.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
3+
<PropertyGroup>
4+
<!-- Required due to https://github.com/dotnet/corefx/issues/2171 -->
5+
<AssemblyKeyType>ECMA</AssemblyKeyType>
6+
</PropertyGroup>
37
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
48
<PropertyGroup>
59
<Configuration Condition="'$(Configuration)' == ''">Windows_Debug</Configuration>
610
<Platform Condition="'$(Platform)' == ''">AnyCPU</Platform>
711
<AssemblyName>System.IO.Compression</AssemblyName>
12+
<AssemblyVersion>4.0.0.0</AssemblyVersion>
813
<OutputType>Library</OutputType>
914
<ProjectGuid>{5471BFE8-8071-466F-838E-5ADAA779E742}</ProjectGuid>
1015
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

src/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ClassDataContract.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,15 @@ static internal bool IsNonAttributedTypeValidForSerialization(Type type)
437437
}
438438

439439
private static string[] s_knownSerializableTypeNames = new string[] {
440+
"System.Collections.Queue",
441+
"System.Collections.Stack",
442+
"System.Globalization.CultureInfo",
443+
"System.Version",
444+
"System.Collections.Generic.KeyValuePair`2",
445+
"System.Collections.Generic.Queue`1",
446+
"System.Collections.Generic.Stack`1",
447+
"System.Collections.ObjectModel.ReadOnlyCollection`1",
448+
"System.Collections.ObjectModel.ReadOnlyDictionary`2",
440449
"System.Tuple`1",
441450
"System.Tuple`2",
442451
"System.Tuple`3",
@@ -445,9 +454,6 @@ static internal bool IsNonAttributedTypeValidForSerialization(Type type)
445454
"System.Tuple`6",
446455
"System.Tuple`7",
447456
"System.Tuple`8",
448-
"System.Collections.Generic.Queue`1",
449-
"System.Version",
450-
"System.Collections.ObjectModel.ReadOnlyCollection`1"
451457
};
452458

453459
internal static bool IsKnownSerializableType(Type type)

src/dir.targets

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,10 @@
1010
<Target Name="GetAssemblyVersion"
1111
Returns="$(AssemblyVersion)"/>
1212

13-
<!-- Returns the set of files to be included in the nuget package
14-
with appropriate metadata.-->
15-
<Target Name="GetFilesToPackage"
16-
Returns="@(FilesToPackage)">
17-
18-
<PropertyGroup>
19-
<PackagePath Condition="'$(PackagePath)' == ''">$(TargetPath)</PackagePath>
20-
<DocPackagePath Condition="'$(DocPackagePath)' == ''">$(DocumentationFile)</DocPackagePath>
21-
22-
<!-- default to treat as 'dotnet' package based portable library -->
23-
<PackageTargetFramework Condition="'$(PackageTargetFramework)' == ''">dotnet</PackageTargetFramework>
24-
<PackageTargetPath Condition="'$(PackageTargetPath)' == ''">lib/dotnet</PackageTargetPath>
25-
</PropertyGroup>
26-
27-
<ItemGroup>
28-
<FilesToPackage Include="$(PackagePath)">
29-
<AssemblyVersion>$(AssemblyVersion)</AssemblyVersion>
30-
<TargetFramework>$(PackageTargetFramework)</TargetFramework>
31-
<TargetPath>$(PackageTargetPath)</TargetPath>
32-
</FilesToPackage>
33-
<FilesToPackage Include="$(DocPackagePath)" Condition="Exists('$(DocPackagePath)')">
34-
<TargetFramework>$(PackageTargetFramework)</TargetFramework>
35-
<TargetPath>$(PackageTargetPath)</TargetPath>
36-
</FilesToPackage>
37-
</ItemGroup>
38-
</Target>
13+
<!-- Returns the generated documentation file for consumption
14+
by the NuGet package generation -->
15+
<Target Name="GetDocumentationFile"
16+
Returns="$(DocumentationFile)"/>
3917

4018
<Import Project="$(ToolsDir)Build.Common.targets" Condition="Exists('$(ToolsDir)Build.Common.targets')" />
4119
<Import Project="..\override.targets" Condition="Exists('..\override.targets')"/>

0 commit comments

Comments
 (0)