Commit Graph
581 Commits
Author SHA1 Message Date
Stephen Toub e5ff70defe Fix some license headers across the repo (dotnet/corefx#27039)
Commit migrated from https://github.com/dotnet/corefx/commit/7f19e761b7400521030707df2e6fac10daa36f26
2018-02-11 08:55:26 -05:00
Marco Rossignoli 9c4b4c7d91 "Don't directly throw Exception" System.Runtime.Serialization.Json (dotnet/corefx#25796)
* Don't directly throw Exception


Commit migrated from https://github.com/dotnet/corefx/commit/075df17be2057be1d47f11597f0ee735cb39f60b
2017-12-11 09:29:31 -08:00
Ben Adams 0751be3739 DCSerialization CriticalHelper.WriteMembers cleanup (dotnet/corefx#25098)
DCSerialization CriticalHelper.WriteMembers cleanup

Commit migrated from https://github.com/dotnet/corefx/commit/0bfc6e9156aef3838b2594c657c10392a6025842
2017-12-05 09:42:20 -08:00
Stano Peťko 7b6bd469f2 Remove dead code from System.Private.DataContractSerialization (dotnet/corefx#24936)
* Deleted dead code from System.Private.DataContractSerialization.

* Deleted NamespaceManager.NamespaceBoundary property.

* Reverted back changes in DataContract.cs.


Commit migrated from https://github.com/dotnet/corefx/commit/712417b022a234badf046163ede6179c8c10d1e3
2017-11-14 09:59:07 -08:00
Stephen Toub 54c1d578d8 Mark applicable structs as readonly
Commit migrated from https://github.com/dotnet/corefx/commit/54e889a7c71bf22f9f1ef244a9d040fee64c74d5
2017-11-03 09:48:47 -04:00
Viktor Hofer fcc00e81f3 Make corefx exceptions serializable and add typeforwards (dotnet/corefx#24427)
* Add serializable attribute and typeforward and adding serialization impl
* Expose ZLibException in impl assembly
* Remove deserialization negative tests
* Adding tests for exceptions
* Adding SqlError data to base exception data table
* System Data Facade
* Add netfx471 blob diffs for Hashtable and ListDictionary
* Build Microsoft.NETCore.App.deps.json after manual shims
* Disable currently failing uap/uapaot tests because of shim assembly load errors


Commit migrated from https://github.com/dotnet/corefx/commit/e3f74deb999571d3f34a6b2b8011caebcf06dbfc
2017-10-27 18:00:52 +02:00
Santiago Fernandez Madero b9d768589e Fix System.Data.Odbc configurations for support package and run UpdateVSConfigurations (dotnet/corefx#24752)
* Fixed odbc configurations for compat package

* Run UpdateVSConfigurations

* Remove Default Configurations to help VS... comment from csproj's

* Remove from System.Buffers as well


Commit migrated from https://github.com/dotnet/corefx/commit/bcc59b2e74090cfbcc4d6e7c245c172744e9d46b
2017-10-23 18:24:28 -07:00
Viktor Hofer 4dc6b13ac0 Cache regexes for assembly name check in DataContract (dotnet/corefx#24291)
* Cache regexes assembly name check

* Replace regex match with string comparison


Commit migrated from https://github.com/dotnet/corefx/commit/f8d37aef84f1fb7990a54a772e7a2c679fa856e6
2017-10-16 17:31:53 +02:00
Xing Mao 0033aea7f4 Fix dotnet/corefx#22779
Commit migrated from https://github.com/dotnet/corefx/commit/f05d1d6e43c86b94bb8bd790c2065410e41f8c58
2017-09-12 10:44:39 -07:00
Xing Mao d4dceb196f Fixed a bug in GetCollectionMethods.
Fix dotnet/corefx#22777


Commit migrated from https://github.com/dotnet/corefx/commit/781e6f4235b755bb18d7e5aa834e2b9d4cf64e22
2017-09-12 10:44:39 -07:00
Justin Van Patten 098ea03634 XmlJsonWriter: Avoid unnecessary allocations (dotnet/corefx#23736)
* XmlJsonWriter: Avoid unnecessary allocations

While it only runs once to initialize a readonly static field,
`CreateEscapedJsonStringTable` was allocating a lot of unnecessary
garbage. For each char in the table, either 2 box allocations for the
`string.Concat(object, object)` call, or 1 box allocation plus
`string.Format` overhead. These unnecessary allocations can be avoided
by just pre-generating the table.

* Add more DataContractJsonSerializer tests

* Fix typo


Commit migrated from https://github.com/dotnet/corefx/commit/62d27daf94f0131350c6ae32fcafc2bbd4306626
2017-09-01 15:01:18 -07:00
Justin Van Patten 2ead5cacf6 DataContractSerialization: Use Encoding.Preamble (dotnet/corefx#23324)
Use the new `Encoding.Preamble` property to avoid unnecessary `byte[]`
allocations for encodings that return cached instances from `Preamble`
(e.g. all of the built-in encodings that have preambles).

Commit migrated from https://github.com/dotnet/corefx/commit/78bab3761914ec58ae793f4fb8a8940cba4d9188
2017-08-17 10:19:05 -04:00
Shin Mao 38a0817352 Fixed Issue with DCS Serializing Get-Only Collection.  (dotnet/corefx#22975)
* Fixed Issue with Get-Only Collection.

Fix dotnet/corefx#22965

* skip one test on uapaot.


Commit migrated from https://github.com/dotnet/corefx/commit/793e7f027df16c2d9bc979876c3af1547bcc8f7d
2017-08-16 11:00:05 -07:00
Tanner Gooding aef713764c Updating cases of IsInfinity || IsNaN to be !IsFinite.
Commit migrated from https://github.com/dotnet/corefx/commit/1194cdd15a91f0431c19cb2a03d5959aa698e658
2017-07-26 07:55:14 -07:00
Huangli Wu c3c99fcde2 Need use the context passed into the delegate not the context passed into the method. (dotnet/corefx#22486)
Commit migrated from https://github.com/dotnet/corefx/commit/9c9807cde8d74f0b1f58f0c6b613e783606d8bac
2017-07-21 11:36:06 -04:00
Shin Mao 19b8dab790 Fixes for CollectionDataContract in ReflectionOnly Mode. (dotnet/corefx#22286)
* Fixes for CollectionDataContract in ReflectionOnly Mode.

* Applied the fix to DCJS.


Commit migrated from https://github.com/dotnet/corefx/commit/d474718b0cab803c71d2442c68d79ca62e4b3e09
2017-07-17 16:10:02 -07:00
Shin Mao 046fafa370 Move Entries from Library Rd.xml to Test Rd.xml. (dotnet/corefx#21668)
* Move Entries from Library Rd.xml to Test Rd.xml.

XmlSerializer.Mode iss marked as required by the System.Private.Xml.rd.xml.
Unfortunately, it pulls in the XmlSerializer type itself (has to), which
in turn pulls in a whole lot of code through its static ctor dependencies.
This caused some size-on-disk regressions.

As the property is used by our test project only, the fix is to move the
entry from the library rd.xml to the test rd.xml.

Fix dotnet/corefx#21667

* Minor changes.


Commit migrated from https://github.com/dotnet/corefx/commit/f4d12ffbef7ea1c4142f5e039602089b16bb73be
2017-06-30 09:31:32 -07:00
Shin Mao 3be9cd7eae Enable Reflection-based Serialization to Call Static Parse Method. (dotnet/corefx#21235)
* Enable Reflection-based Serialization to Call Static Parse Method.

The issue was that, on uapaot, reflection-based serialization cannot invoke primitive types's static `Parse` method due to reflection on primitive types being blocked.

Fix dotnet/corefx#21143

* minor changes.


Commit migrated from https://github.com/dotnet/corefx/commit/f700a743b52cf6e072f980fa688ca7dd89e8cdbf
2017-06-26 17:16:24 -07:00
Shin Mao ae1cf1fb2e DCJS_VerifyDictionaryFormat Failed in ReflectionOnly Mode. (dotnet/corefx#20833)
Fix dotnet/corefx#20636

Commit migrated from https://github.com/dotnet/corefx/commit/6ec0ff500b5d1077107b5ef70394f13054cf7e9a
2017-06-09 11:57:43 -07:00
Shin Mao 50c0a70c52 Fix DCJS_VerifyIndentation. (dotnet/corefx#20844)
Fix dotnet/corefx#20844

Commit migrated from https://github.com/dotnet/corefx/commit/208b731703fbe81e4084bae6d52aa257045690fc
2017-06-09 09:50:44 -07:00
Shin Mao 4bbd5b4215 Fix a bug with Type having private Getter. Fix #dotnet/corefx#20476 (dotnet/corefx#20603)
Commit migrated from https://github.com/dotnet/corefx/commit/780209e2438d53a3053874508435ed4ad8fa4c5b
2017-06-08 10:44:13 -07:00
Matt Ellis f845246ade Update buildtools (dotnet/corefx#20651)
This brings in the new version of buildtools that publishes the
tool-runtime as a portable application instead of standalone.

The source file changes are to remove some non unicode characters in
files that were tripping Roslyn up.

Commit migrated from https://github.com/dotnet/corefx/commit/182e565fa4d1e596d88b30f896ed6a67f5d76b83
2017-06-04 19:14:42 -07:00
Shin Mao 57d14b374f Removed Exception types from Known Serializable Type List.
Commit migrated from https://github.com/dotnet/corefx/commit/82a719f503a18103d9f896336237989f8d630486
2017-05-31 14:18:36 -07:00
Eric St. John e02c675179 Increment versions post 2.0
Commit migrated from https://github.com/dotnet/corefx/commit/6c5f87319a4785499008c95b2ff5e7f13a413d22
2017-05-16 14:12:16 -07:00
Shin Mao 214a6485db Workaround Issue Related to DateTimeOffsetAdapter. (dotnet/corefx#19665)
* Workaround Issue Related to DateTimeOffsetAdapter.

Ref dotnet/corefx#19663

* Revert the change on DateTimeOffsetAdapter


Commit migrated from https://github.com/dotnet/corefx/commit/5685c8b9f30cba444b81ee55255cfecde6b0f9aa
2017-05-15 13:38:36 -07:00
Shin Mao e26572006e Fix DCS_ResolveNameReturnsEmptyNamespace. (dotnet/corefx#19631)
* Fix DCS_ResolveNameReturnsEmptyNamespace.
Fix dotnet/corefx#19629

* Updated comments.

* Updated the comments.

* Refactor the fix.

* minor change


Commit migrated from https://github.com/dotnet/corefx/commit/f86236cc01acd52333b4931760b187b3c5c14607
2017-05-15 10:08:43 -07:00
Shin Mao 29d96b57bb Fixed DCS_EnumerableCollection. (dotnet/corefx#19684)
Fix dotnet/corefx#19677

Commit migrated from https://github.com/dotnet/corefx/commit/1c7e85efda1794e98e1b806fbda5f1c20940e5cc
2017-05-11 17:55:03 -07:00
Shin Mao a713ea97a3 Support KnownTypeAttribute.MethodName on UWP. (dotnet/corefx#19617)
Commit migrated from https://github.com/dotnet/corefx/commit/3f5059719c164fa5e7381c2173535ffe6f806fdc
2017-05-11 09:40:17 -07:00
Shin Mao c0a4e53f73 Fix rd.xml for Serialization Reflection Only Mode. (dotnet/corefx#19556)
* Fix rd.xml for Serialization Reflection Only Mode.

Fix dotnet/corefx#19067

* Removed GenericParameter Entries.


Commit migrated from https://github.com/dotnet/corefx/commit/3365ac6e8d981062e0170a67e06f907fea98e9a2
2017-05-10 13:05:46 -07:00
Shin Mao a6dbead65b Enable Canonicalization on NetCore (dotnet/corefx#19378)
* Enable NetCore to Support Canonicalization.

Fix dotnet/corefx#18910.

* Enabled Xml Canonicalization Tests.

* Fixed a Test Bug.


Commit migrated from https://github.com/dotnet/corefx/commit/8fae5ae76f95b5483cf51b97dc016ef0631f7013
2017-05-05 17:38:23 -07:00
Huangli Wu 6f93f00235 Support IObjectReference in DCS. (dotnet/corefx#19121)
* Support FactoryType in DCS.

* Few updates based on Shin's feedback.

* Revmove unnecessary settings.


Commit migrated from https://github.com/dotnet/corefx/commit/d212c1d3c05fb436a48e2acbd4266fe97de07e58
2017-04-28 17:13:01 -07:00
Shin Mao c97666d030 Fixed a bug with DateTimeOffsetAdapter. (dotnet/corefx#18958)
* Fixed a bug with DateTimeOffsetAdapter.

The bug caused behavior difference between NetCore and NetFx.
I also fixed a few tests for DateTime.

Fix dotnet/corefx#18802
Fix dotnet/corefx#18512

* Addressed feedback.


Commit migrated from https://github.com/dotnet/corefx/commit/f4f343182bcb542e672eea0194b8ffe48d527879
2017-04-26 19:25:30 -07:00
Shin Mao 1448b13df4 Fix XmlDictionaryReader.ReadElementContentAsDateTime(). (dotnet/corefx#18644)
Fix dotnet/corefx#18205

Commit migrated from https://github.com/dotnet/corefx/commit/1051e90fe83dc230e85d50a611d207bad30538f5
2017-04-25 20:06:22 -07:00
Shin Mao 7f34fa4f82 Fix PNSE in serialization. (dotnet/corefx#18768)
Commit migrated from https://github.com/dotnet/corefx/commit/fa418f1c10de81b70114863dedfba0592f72d4d4
2017-04-21 17:08:27 -07:00
Huangli Wu 8d2e3851b0 Support ExtensionDataObject in ReflectionOnly mode. (dotnet/corefx#18698)
* Support ExtensionDataObject in ReflectionOnly mode.

* Rename extensionObject.


Commit migrated from https://github.com/dotnet/corefx/commit/85a11b840b1195910bf5ec5e8d9ce7dc95838a85
2017-04-21 10:47:03 -07:00
Wes Haggard 3fcb8fe336 Directly reference DBNull
Clean up some old reflection references to DBNull and statically
reference it now.


Commit migrated from https://github.com/dotnet/corefx/commit/31b80e49c268d25dac6ed5b7849cb1c1f1f8de00
2017-04-18 09:25:10 -07:00
Shin Mao c55df7777d Add messages for PNSE in Serialization (dotnet/corefx#18504)
* Port Implementation for SchemaExporter.Export.

* Added messages for PNSE in Serialization.


Commit migrated from https://github.com/dotnet/corefx/commit/6c53c9572258b5b208e9a74efc170494de4de822
2017-04-17 22:21:32 -07:00
Wes Haggard dacaabc206 Merge pull request dotnet/corefx#18165 from weshaggard/UpdateAssemblyKeys
Updates how we define which key an assembly uses

Commit migrated from https://github.com/dotnet/corefx/commit/4b0b313c3a40fefe793ab465f152f382484813d8
2017-04-10 16:48:43 -07:00
Atsushi Kanamori da9822eb2c NS2.0 Finish XmlDictionaryWriter surface area.
This override appears to be something that's supposed to
be overridden by the actual implementation class by something
decent, but in keeping with the desktop (and with methods
like WriteValueAsync(IStreamProvider)), we'll provide
a default implementation that satisfies the letter
(if not quite the spirit) of the contract...


Commit migrated from https://github.com/dotnet/corefx/commit/0c8c91808c3db79f32647887e964e3d962aaf3f9
2017-04-10 13:03:29 -07:00
Wes Haggard 4185183e8c Updates how we define which key an assembly uses
Now instead of Use*Key a project can instead define the assembly key
in the project (genreally the common dir.pops for a project) using
the AssemblyKey property. The accepted values are Open, ECMA, MSFT,
Test.

This change allows for a repo to set the default key they want to use
for projects. In corefx we have switched the default to use the Open
key instead of the old BuildTools default of MSFT key.

As part of this update we are explicitly setting the AssemblyKey in
all the library projects (although it is really only necessary for
projects that aren't the default).

Also with this change we are updating all the new libraries that have
not yet shipped stable (compared to our 1.1 release) and making them
use the Open key. Which means that for prerelease dependencies there
might be some binary breaking changes to consume.

The following libraries ahven't shipped so there key is being
changed from MSFT to Open:
Microsoft.XmlSerializer.Generator
System.CodeDom
System.Configuration.ConfigurationManager
System.Data.Odbc
System.DirectoryServices
System.DirectoryServices.AccountManagement
System.DirectoryServices.Protocols
System.IO.Ports
System.Json
System.Memory
System.Net.HttpListener
System.Net.Mail
System.Net.ServicePoint
System.Net.WebClient
System.Net.WebProxy
System.Private.Xml
System.Private.Xml.Linq
System.Security.Cryptography.Xml
System.Security.Permissions
System.Transactions.Local
System.Web.HttpUtility


Commit migrated from https://github.com/dotnet/corefx/commit/ac09a797d09502ebab61f7167bb856846602e1e6
2017-04-10 12:51:50 -07:00
Eric StJohn 0a2460e891 Merge pull request dotnet/corefx#17825 from ericstj/ILLinkTrimAssembly
Add ILLink to the build

Commit migrated from https://github.com/dotnet/corefx/commit/16625287b450bc623fe46683f0ff27da1ab5ad47
2017-04-05 10:19:17 -07:00
Dan Moseley f1d9859a12 Remove dead serialization files (dotnet/corefx#17865)
Commit migrated from https://github.com/dotnet/corefx/commit/0e6154cabbd74794cfe971bab992a6fd236ad7bc
2017-04-04 07:00:29 -07:00
Wes Haggard 390ceec404 Add build option to only build stuff that is part of NETCoreApp
pass /p:BuildNETCoreAppOnly=true will filter the product build
to only include things in corefx that are part of netcoreapp (i.e
shared framework).

Note this filtering doesn't work correclty for test projects because
some of them require things outside the shared framework to build and
run. We could extend it to test projects at some point if we want
to clean up those dependencies, but for now it is only intended
for build.cmd/sh


Commit migrated from https://github.com/dotnet/corefx/commit/f4ccd035032e75b219a5f3b960c5637d43aae1d3
2017-04-03 15:05:42 -07:00
Eric St. John 1a839a01f5 Add manual roots for ILLink
These represent dynamic dependencies that are not caught by ILLink.

See individual files for details on the dependencies.


Commit migrated from https://github.com/dotnet/corefx/commit/2277db969616a5ad4fd9f4a8118a3b4030ff62d3
2017-04-03 10:23:59 -07:00
Shin Mao 8fb255a962 Changed back to use Type.GetMethod.
Commit migrated from https://github.com/dotnet/corefx/commit/b3b6b89e313933e5c7f0c7960ef9723fdfe8758c
2017-03-22 17:10:54 -07:00
Shin Mao 5561dece1b Replace Type.GetMethod with TypeInfo.GetDeclaredMethod.
Commit migrated from https://github.com/dotnet/corefx/commit/7c85323e525691e6f2a7b322c1051312d98300d4
2017-03-22 12:45:19 -07:00
Shin Mao b6abd93f57 Changed SerializationOption to be internal.
Commit migrated from https://github.com/dotnet/corefx/commit/b9ca0f0b728852e39da7f2e1af5be4661fbbd92b
2017-03-22 12:34:25 -07:00
Rion Williams 1b159ddccc Replaced ContainsKey() Calls with TryAdd() Dictionary Calls (dotnet/corefx#17201)
* Replaced ContainsKey() Calls with TryAdd() Dictionary Calls (Where Applicable)

Replaced `ContainsKey()` method calls with the new `TryAdd()` method
where applicable.

* Reverted `TryAdd()` To Previous Approach

Reverted to earlier approach to avoid unnessary allocation of  a new
row.

* Cleaned Up `else-if` Usage with `TryAdd()`

Removed the `TryAdd()` call from within the conditional statements and
moved them to the body

* Added Extra Line for Readability / Coding Style

* Updated Non-Dictionary Test Cases To Use `TryAdd()`

Updated various unit tests to include the `TryAdd()` instead of the
previous `ContainsKey()` pattern. This focused primarily on test casts
that were not dictionary-related at all to help curb any potential
regression issues.

* Added `TryAdd()` Within Dictionary Performance Test

Replaced older `ContainsKey()` implementation with newer `TryAdd()`.

* Reverted PerfDictionary Test to `ContainsKey()` Usage

Changed test to earlier implementation in to make way for .NET Core
specific tests using newer API.

* Created Separate .NET Core Dictionary Performance Test

Copied the existing dictionary performance tests (from
`Perf.Dictionary.cs`) and used the newer `TryAdd()` calls; Adjusted the
projects test file only include these when targeting .NET Core.

* Created Separate .NET Core SQL Manual Test

Reverted previous usage of the newer `TryAdd()` method and created a
separate .NET Core specific file to to be conditionally included and
tested.

* Separated .NET Core ILPrinter Test

Reverted previous changes involving the `TryAdd()` method and created a
seperate file to test this functionality only for .NET Core.

* Created Seperate .NET Core Linq TreeManipulation Tests

Reverted previous changes to the normal tests and created a seperate
test targeting .NET Core with the newer `TryAdd()` usage.

* Created Seperate .NET Core xNodeBuilder Test

Reverted previous changes to the normal tests and created a seperate
test targeting .NET Core with the newer `TryAdd()` usage.

* Missed .NET Core Reference for InternalConnectionWrapper

* Applied Compilation Condition for InternalConnectionWrapper to Avoid Collisions

Applied Compilation Condition for InternalConnectionWrapper to Avoid
Collisions (i.e. either build for .NET Core or use the other one for
non-Core builds)

* Avoiding Another Build Collision with .NET Core Functionality

Added a .NET Core compilation constraint for the .NET Core specific
ILPrinter class to avoid issues when building (i.e. only build .NET Core
or non-Core).

* Fixed Yet Another Potential Build Collision with .NET Core

Added a .NET Core compilation constraint for the .NET Core specific
Performance Dictionary testing class to avoid issues when building (i.e.
only build .NET Core or non-Core).

* Removed More Potential .NET Core Compilation Collisions

Added .NET Core specific constraint to seperate Core and non-Core
classes when building

* Additional .NET Core Build Collision Fix

Added an additional condition to separate .NET Core and non-Core builds.

* Added TryAdd Extension Method for Testing

Added an extension method to support `TryAdd()` calls within test cases
across the solution to avoid code duplication.

* Updated Namespace for Dictionary Extension Methods

Changed from `System.Collection.Tests` to `System.Collections.Generic`
as this wasn't actually a test but rather an extension method.

* Removed Previous Duplicate Tests; Added Extension Method

Removed Previous Duplicate Tests; Added Extension Method Usage

* Updated Extension Method Path

Replaced previous relative pathing string with `$(CommonTestPath)`

* Added Missing Generic Type Parameters to TryAdd Extension Method

* Removed Unnecessary Using Statement

* Updated System.Linq.Expressions Tets to use Extension Method

Removed .NET Core duplicate tests; Added reference to new extension
method (from Common\tests)

* Updated System.Private.Xml.Linq .NET Core Tests to Use TryAdd()

Updated System.Private.Xml.Linq .NET Core Tests to Use TryAdd()
extension method.

* Updated System.Collections To Use Dictionary.TryAdd() Extension Method

Removed previous .NET Core duplicated code and references

* Updated Non-ContainsKey() Tests To Use Extension Method

Updated Non-ContainsKey() tests to use the `TryAdd()` extension method
approach

* Extended TryAdd() Extension Method

Updated the existing `TryAdd()` extension method to target any Dictionary
related interfaces (as opposed to Dictionary implementations)

* Updated References in System.Collections.Test

Removed previous .NET Core specific reference; Added extension method
availability

* Added `TryAdd()` Extension Reference

Added the `TryAdd()` extension for some other dictionary tests that rely
on an interface (which now supports the `TryAdd()` method).

* Removed Explicit .NET Core Compilation Constraint

* Fixed Coding Style Issue

Fixed Coding Style Issue of a missing blank line following the closing
gullwing brace for the if-statement.

* Added `<Link>` Section for Extension Method References

Updated all of the previously added extension method `<Compile>`
sections to include a `<Link>` section to improve formatting.

* Added <Link> Section for Dictionary Extensions

Added Missing <Link> Section for Dictionary Extensions


Commit migrated from https://github.com/dotnet/corefx/commit/3d4d8038d1a3f0c56d3046bc7494f30ecc35e67b
2017-03-21 14:58:04 -04:00
Dan Moseley 9d47195e42 Enable Pinvoke checker and baseline violations (dotnet/corefx#16704)
* Fix UWP Pinvoke checker condition

* analyzer baselines

* Remove redundant local define

* Remove redundant CA lines

* Special case Registry

* Fix BlockReflectionAttribute

* Replace NETNATIVE with uap define

* baselines

* Disable Pinvoke scan on specific projects

* Disable BlockReflectionAttribute on ilproj

* Revive 2 baselines

* Disable UWP validation on SQlClient

* Convert some defines to `uwp`

* Fix S.N.Primitives baseline

* Remove dead baselines

* Clean up NET_NATIVE defines

* Remove FEATURE_CORECLR except from shared sources

* Change Threading.Thread defines to just uapaot

* Fix comment

* Fix comment 2

* Change serialization uap defines to uapaot

* Rename EnableWinRT to UWPCompatible

* Fix UAP build for Console

* Fix uap condition in XML csproj

* Fix condition in XmlSerializer project

* Replace netcore50

* Remove dead #if

* Redundant console condition

* Redundant console condition2

* Trim baseline

* Revert Console baseline to pre UAP

* Fix MemoryMappedFiles uap build

* Fix S.Linq.Expressions build for UAP by temporarily disabling it

* Fix S.N.Sockets build for uap

* No plans to put SQLClient in UWP

* Fix RuntimeInformation build

* Fix MemoryMappedFiles build for Unix

* Add UWPCompatible to all netstandard versions

* Add EnablePinvokeAnalyzer to disable Pinvoke checking entirely for some reason

* Remove dead System.Xml.XmlSerializer.Tests.settings.targets

* Fix interop services build

* Remove last uap/uapaot define in Xml tests

* PInvoke check doc

* Fix PInvoke casing

* PInvoke file is case sensitive

* Remove unnecessary references to uapaot from projects that don't have uapaot configs

* Remove unnecessary uapaot from S.R.I.RI

* Replace UWPCompatible for TargetGroup in csproj conditions

* Reverse FileSystem edit as not ready to build for UWP


Commit migrated from https://github.com/dotnet/corefx/commit/b1865ea0847a7a86baefe8378b772ecf0b785681
2017-03-09 21:08:39 -08:00
Shin Mao fe66d99aa2 Fixed a bug with serializing Dictionary<K,T>.
Fix dotnet/corefx#16864


Commit migrated from https://github.com/dotnet/corefx/commit/858051c5fe5471314b5bb57b110e1cd17d8b8fe8
2017-03-08 14:44:52 -08:00