Commit Graph
57 Commits
Author SHA1 Message Date
Viktor Hofer 5f98ba6a2b Enable project restore for test projects (dotnet/corefx#38151)
* Factor out repo restore into seperate props/targets

* Use configuration system msbuild sdk

* Remove XUnit.Runtime.depproj

* Remove TargetGroup usages in test projects

* Fix ILLink configuration

The ILLink package contains netcoreapp2.0 assets which are compatible
with netstandard2.0. Removing the old TargetFramework to restore
successfully.

* Remove usages from TargetGroup in Directory.Build.props

* Remove dead net4* configurations

* Change tests.builds to tests.proj sdk proj

* Make externals dir proj an sdk project

* Consume Microsoft.DotNet.CoreFxTesting as an msbuild sdk

* Use runtimeconfig.template.json

* Remove SupplementalTestData

* Map shared framework version to product version

* Stop binplacing tests

* Move some tool depprojs to targets during restore

* Remove dead code

* Use PackageReference instead of RefFromRuntime in test

* Disable using an apphost

* Copy compression testdata manually cause unicode bug

* Remove target batching in optimizationData

* Reference packaging tools from CoreFx.Private.TestUtilities


Commit migrated from https://github.com/dotnet/corefx/commit/c4c1985531cc1f25c805bbc4801b85c98e0dfee0
2019-06-15 21:27:13 +02:00
Viktor Hofer a5d5b91672 Delete dead uapaot code (dotnet/corefx#38330)
* Delete dead uapaot code

Commit migrated from https://github.com/dotnet/corefx/commit/8c2be7893fa585cba9c094c27b69d7c8e0822ef3
2019-06-14 15:12:42 +02:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
Morgan Brown e15e93f378 Implement Serialization Guard - CoreFX portion
Consume Serialization Guard API in BinaryFormatter and Process.

Also includes Serialization Guard's tests.

Commit migrated from https://github.com/dotnet/corefx/commit/6ca16758a5d454c1f1b04975bf55f259dd71fc49
2019-04-08 10:53:37 -07:00
Viktor 7e4b5f9b01 Update src folder
Commit migrated from https://github.com/dotnet/corefx/commit/817c36a05ef2d92e59ce6f5a37e2be50076361b3
2019-04-02 19:21:57 +02:00
Viktor Hofer 976ee8955e Fix IsDrawingSupported condition and streamline code
Fix unix IsDrawingSupported & rename helper method in Drawing


Commit migrated from https://github.com/dotnet/corefx/commit/64c979d70525f7113880c1f07f6165d860f30962
2018-11-19 13:14:44 -08:00
Ahson Khan 714a878eb7 Add JsonUtf8Reader (for ReadOnlySpan) along with unit tests (dotnet/corefx#33216)
* Initial check-in for System.Text.Json library and solution

* Auto-generate the reference assembly

* Provide an overview README and roadmap

* Change the solution GUID to be unique

* Fix package description nit

* Change to MIT license instead of GPL

* Fix file extension of images to png

* Address PR feedback and only support netcoreapp

* Fix the configuration props and project files

* Add comments to the JsonTokenType enum

* Add an internal class for commonly used constants when reading JSON.

* Add a comment handling enum for lenient JSON reading

* Add a JsonReaderOptions struct to provide extensible customization of
JsonReader behaviour

* Add a JsonReaderException class which is thrown when we see an invalid
JSON text

* Add the skeleton for the JsonUtf8Reader ref struct and add files to
csproj

* Add JsonReaderState, ThrowHelper, and Strings resource file

* Address PR feedback, remove OS-specific configurations

* Complete the implementation of core JsonReader APIs for reading spans

* Update the reference assembly by auto-generating it

* Add unit tests and TryGet APIs

* Add XML comments to describe the JsonUtf8Reader at a high level

* Fix config and csproj to reference S.R.CS.U from Corelib

* Rename type from JsonUtf8Reader to Utf8JsonReader

* Remove remnants of ReadOnlySequeunce related fields/properties

* Add the remaining TryGetValueAsX APIs

* Change JsonReaderState ctor to accept JsonReaderOptions instead

* Seal the JsonReaderException class

* Rename LineBytePosition to BytePositionInLine

* Fix typo in ArrayEndWithinObject exception message

* Capitalize the acronym JSON within exception messages.

* Override GetObjectData and add a private deserialization ctor on
JsonReaderException

* Be explicit with lessThan in the IndexOfAny call site

* Only use ulong when Options isn't AllowComments to align stack usage

* Rename IndexOfAny helper to IndexOfOrLessThan

* Remove stray comment and fix xml comment for BytesConsumed

* Braces everywhere

* Rename localCopy to localBuffer to tie it to _buffer

* Add IsDigit and IsHexDigit helper methods

* Rename Solidus to Slash, ReverseSolidus to BackSlash, and Use Asterisk constant

* Use static encoder and avoid unnecessary allocation.

* Combine multiple TryParse calls that only differ by standardFormat

* Use SR.Format instead of string.Format and add debug.fail for default
case

* Make the exception as serializable and add test to BinaryFormatterTestData

* Fix exception messages, avoid printing control characters, and remove
unnecessary else.

* Make sure all exception messages are consistent and that they make sense
in context.

* Fix and add new comments, rename internal enum values, and remove
JsonLab

* Throw InvalidCastException from TryGetAsX if token type doesn't match

* Resolve TODOs, add issues, fix search for end of string, and remove recursive calls + add more tests.

* Use Unicode escape sequences for non-ASCII characters in tests.

* Add more tests related to skipping and consuming comments.

* Allocate the stack lazily, only when depth actually surpasses 64.

* Add a netcoreapp config to
System.Runtime.Serialization.Formatters.Tests.csproj

* Remove unnecessary DefineConstants property in test csproj

* Use Invariant Culture where necessary to avoid tests failing on es-ES
machines

* Fix up nits in the exception messages

* Add an IsTokenTypePrimitive helper method and fix comment spelling

* Use helper, use while(true) instead of goto, and change TryGet methods
to throw InvalidOperationException

* Shorten CommentHandling enum values and rename Default to Disallow

* Fix "is the stack empty" check in EndObject/EndArray

* Add previous token type to state and update it when token type is not a
comment

* Include comment delimiters as part of comment token, fix Debug.Assert
and tests.

* Add helper to avoid code duplication

* Add temporary workaround for Utf8 double parsing issue


Commit migrated from https://github.com/dotnet/corefx/commit/43759525e9a01fb9caedc0fb2281db5c65a16f65
2018-11-09 02:53:01 -08:00
Jan Kotas 005c064038 Mark tests exercising CoreLib with TestRuntime tag (dotnet/corefx#32720)
Commit migrated from https://github.com/dotnet/corefx/commit/6b299367382b28ec0b9592bf5b37db48fb02cb67
2018-10-09 12:51:04 -07:00
Jeremy Koritzinsky 3ac2fd663b Update SafeBuffer Initialize tests to reflect new exception type. (dotnet/corefx#32487)
Commit migrated from https://github.com/dotnet/corefx/commit/b1cf64ba71f0c1f81154fa297358b9583611a229
2018-09-28 20:17:57 +02:00
Viktor Hofer 01fdc8d3d5 Make Image, Bitmap, Metafile and Icon serializable (dotnet/corefx#30817)
* Make Image, Bitmap, Metafile and Icon serializable

* Fix build error because of different namings on Unix & Windows

* Add Unix MemoryStream handling for serialization

* Simplify Icon deserialization logic

* Fix rename build break

* Fix build break again

* Add serialization tests for System.Drawing types

* Remove unnecessary null check in Icon

* Remove Debug fail invocations in Image deserialization

* Disable blob comparison for Drawing types

* Disable system.drawing.common binary formatter tests for uap since is a turd assembly

* Fix nano failures

* Fix typo in FindEncoderForFormat call

* Fix Windows test failures

* Fix unix deserialization where nativeImage pointer was not being set and update blobs

* Update metafile comment on why we skip it


Commit migrated from https://github.com/dotnet/corefx/commit/11c54f3bd947b8ceb41b51440379c49cf777248f
2018-09-13 13:45:37 -07:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Eric Erhardt 2053139c9a merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/1c91f96ec67a78a33268181d99a73a736b48c13e
2018-06-15 22:24:40 -05:00
Viktor Hofer 5a7c1ee516 Add netfx472 serialization blobs and cleanup code to fix failing PRs (dotnet/corefx#30394)
* Add netfx472 serialization blobs and cleanup code

* Add check if net472 is patched


Commit migrated from https://github.com/dotnet/corefx/commit/7c1dc969ce02cfab1dbb241800abbd7a3c9a0155
2018-06-16 00:08:28 +02:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Viktor Hofer a38e98f9b5 Reuse HashHelpers for BinaryFormatter objectholder hashes (dotnet/corefx#25509)
* Reuse HashHelpers for BinaryFormatter objectholder hashes

* Revert "Merge pull request dotnet/corefx#6203 from SunnyWar/master"

This reverts commit dotnet/corefx@ddf8ca0295, reversing
changes made to dotnet/corefx@0a0ea7fe57.

* Change resource string, make HashTable reuse existing HashHelper

* Add comment describing hash number growth

* Add hash number growth tests for BinaryFormatter & HashSet

* Disable tests on x86 because of OOMs


Commit migrated from https://github.com/dotnet/corefx/commit/b6b5982f475e2f0b3fb31a941f2561ffd3465c0a
2018-03-29 00:38:05 +02:00
Alexander Radchenko eeda23bfed Fixed netfx System.Runtime.Serialization.Formatters.Tests fails on non-English Windows (dotnet/corefx#28386)
Commit migrated from https://github.com/dotnet/corefx/commit/f3768a7ee2726d0c070bc8c0bd8873d6cc52df7e
2018-03-22 23:01:05 -04:00
Anirudh Agnihotry 7ea972a654 Support added for 2.0 and 2.1 blobs (dotnet/corefx#27399)
Commit migrated from https://github.com/dotnet/corefx/commit/6c5a24394309297e03581cd72daefe83ea5f0903
2018-03-02 23:52:50 -08:00
Santiago Fernandez Madero b317fa70f6 Add System.Security.Permissions netfx facade and mark some APIs as obsolet to match desktop (dotnet/corefx#26758)
* Add System.Security.Permissions netfx facade and mark some APIs as obsolet to match desktop

* PR Feedback


Commit migrated from https://github.com/dotnet/corefx/commit/2ef483fd4aab623e54379be1292999c1fb39a3fa
2018-02-05 14:08:26 -08:00
Maryam Ariyan a63ea85fb5 Porting first half of the System.ComponentModel.Composition tests (dotnet/corefx#25437)
* Adding a portion of System.ComponentModel.Composition tests

Commit migrated from https://github.com/dotnet/corefx/commit/fed2d5ff6842b2ce932c70162f3e06a8d0304030
2017-11-28 20:07:39 -08: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
Stephen Toub fc2f8b26e9 Use stackalloc directly into Span (dotnet/corefx#24212)
* Use stackalloc directly into Span

We have a few places in corefx where we were stackalloc'ing into a temporary pointer and then creating a Span from that.  Now that we're using a C# compiler which supports stackalloc'ing directly into span, use that feature instead.

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/a7f6f470cb2c4cdaafdc3ad85e2520992a8db265
2017-09-24 09:45:07 -04:00
Jose Perez Rodriguez 1085964bcc Updating corefx to use new roslyn compiler (dotnet/corefx#24076)
* Updating corefx to use new roslyn compiler

* Updating to new version of the compiler and use the switch so tests pass on desktop

* Fix System.Reflection.Metadata tests


Commit migrated from https://github.com/dotnet/corefx/commit/fc4b1adb7f06687aa15f0416d83d2c27a0abf8dd
2017-09-18 17:02:24 -07:00
Viktor Hofer 1b6e77f562 Cleanup code in System.Runtime.Serialization.Formatters.Tests (dotnet/corefx#23940)
* Cleanup code in System.Runtime.Serialization.Formatters.Tests

* Moved UnitySerializationHolder serialization test to System.Runtime.Tests


Commit migrated from https://github.com/dotnet/corefx/commit/705dc4196a6139b70dcf818c109b01aa295edcb1
2017-09-12 12:29:54 +02:00
Tarek Mahmoud Sayed 3765a6069b Moving PlatformDetection to Corefx.Private.TestUtilities assembly (dotnet/corefx#23109)
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly

The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.

* Fix Linux BB

* Update the xunit package reference

* Fix wrong condition on one of the tests

* Update the ConditionalFact/Theory to use Type as a parameter


Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
2017-08-10 22:37:36 -07:00
Hugh Bellamy 98b18432b7 Move AssertExtensions to Corefx.Private.TestUtilities (dotnet/corefx#21799)
* Move AssertExtensions to Corefx.Private.TestUtilities

* Update csprojs

* Fix Linq.Expressions uapaot build


Commit migrated from https://github.com/dotnet/corefx/commit/7e3b0db2892c56a431f8e99af9cd9381adec385a
2017-07-03 09:27:30 -07:00
Tarek Mahmoud Sayed 8754550d62 Enable UAP Remote Execution for all tests (dotnet/corefx#21014)
This change to enable remote execution of all corefx tests in UAP. Because the remote execution code for UAP is using WinRT APIs and to avoid forcing adding UAP configuration to all test projects, we factor the remote execution code into its own test library (called TestHelper) which is cross compiled.

Commit migrated from https://github.com/dotnet/corefx/commit/eb2f543b189e8f7f9ae4c31e832ac9d3c22bb41a
2017-06-14 13:26:57 -07:00
Wes Haggard 6223b29eae Manually build mscorlib shim to allow for internal type forwards & Adding TypeForwardFrom to serialiazable types (dotnet/corefx#20697)
* Manually build mscorlib shim to allow for internal type forwards

* prepare tests for netfx->core deserialization changes

* update netfx serialized data

* change hash updater so it doesn't use hard-coded path

* Code cleanup for binary serialization

* Changed ListT to ArrayList in CookieCoolection for cross serialization

* Merge

* Changed observablecollection typeforwards that already had typeforwards on netfx

* Adding ValueTuple blobs for netfx471

* Add internal types which need to be forwarded

* Pull mscorlib shim in along with windows.winmd

To build UAP refs and libs we need an mscorlib shim. So for the build
we pull one in from packages and it will get overwritten when we build
the final one as part of our shim builds

* Removed not needed typeforward and added description

* Remved typeforwards from nested types

* Fixed generic type syntax

* Updated coreclr version, ifdefed imports for netcoreapp

* disable netfx serialization for now

* Merge error fixed

* Update blobs after coreclr changes

* Adding ValueTuple manual typeforwards

* Renamed serialization variables for SortedSet

* Disabling TreeSet<,> serialization support (for now)

* Exception internal data storage typeforward added

* Fix type conflict for mscorlib shim in uapaot configuration

* Split the runtime and ref mscorlib shim

We need to build the ref mscorlib shim only against the reference
assemblies so we still build in shims.proj. However the runtime
mscorlib shim needs to have access to internals so we build it against
the runtime implementation using a manual project.


Commit migrated from https://github.com/dotnet/corefx/commit/ca49bfbfd64351fddba56f2141b90841b8561eb7
2017-06-07 18:14:13 -07:00
Morgan Brown 127e939922 Fixes to unblock BinaryFormatter tests on UAPAOT (dotnet/corefx#20760)
Commit migrated from https://github.com/dotnet/corefx/commit/93c0a34cd24e0915598f79046a0ce9be23030c42
2017-06-06 20:42:27 -07:00
Viktor Hofer f296c1dee8 Initial
Commit migrated from https://github.com/dotnet/corefx/commit/4c49f2727399665ed6b9c828fdcaeaaca30e72fd
2017-05-30 22:31:22 +02:00
Dan Moseley a139bc0b0f Skip verifying stack on full framework (dotnet/corefx#19182)
* Skip test on netfx

* Fix build

* build2

* build3


Commit migrated from https://github.com/dotnet/corefx/commit/a3c6ed02c6baf04019b73f56068a9687ea51702f
2017-05-01 14:23:56 -07:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00
Hugh Bellamy ad1f8fdd2c Add tests for FormatterServices.GetUninitializedObject (dotnet/corefx#17717)
* Add tests for FormatterServices.GetUninitializedObject

- non runtime types
- array, pointer, ref types
- abstract/interface types
- open generic types
- byref like types
- shared generic instantiations
- COM objects
- nullable types
- default constructor
- static constructor (non beforefieldinit)
- static field (beforefieldinit)
- static constructor throwing

as

* Address PR feedback

- Remove now uneeded netcoreapp configuration and definition to use a
simpler non RuntimeType
- Update test that relies on System.__Canon to be coreclr specific
- Add test that actually tests for COM objects
- Fix naming of test for subclass of ContextBoundObject

* Split coreclr runtime specific code into it's own coreclr specific test

* Fix Unix test failures

* Add another test for GetUninitializedObject(TypeDesc) (generic type parameter)

* Address more PR feedback

* Fix CI errors


Commit migrated from https://github.com/dotnet/corefx/commit/b6d4e5fa4bddd130fa2f95e34f5487064ff6bd1b
2017-04-05 07:17:14 -07:00
Santiago Fernandez Madero de36b4d76e Update csproj and solutions configurations (dotnet/corefx#17613)
* Update csproj and solutions configurations


Commit migrated from https://github.com/dotnet/corefx/commit/9fa0bc5de96946eb3e109f13768f1258cfaddc73
2017-03-28 14:36:26 -07:00
Eric Mellino 8fbc03fb77 Remove non-existent project.json's from project files
Commit migrated from https://github.com/dotnet/corefx/commit/56202d079c0a45f17b5b6680ac1df3e5a4f78be1
2017-02-07 12:22:10 -08:00
Wes Haggard 4effd546bc Add ProjectGuids for all projects and empty configs for projects without BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/d00bb5d18ac91189b12ed2fb7131d0ff62da9034
2017-02-02 15:02:57 -08:00
Karthik Rajasekaran 4bbdadd88a Update project configuration and sln files (dotnet/corefx#15182)
* Add ValidateVSConfigurations

* Update project config and sln files.


Commit migrated from https://github.com/dotnet/corefx/commit/f6ab339f446e37505f93ef9f430801fa1dcc05b8
2017-01-17 14:31:23 -08:00
Jose Perez Rodriguez f01bc10825 Make Test projects compile against the Targeting pack. (1/3 of the work) (dotnet/corefx#14482)
Commit migrated from https://github.com/dotnet/corefx/commit/3403b4f6a11fd6ba53551c9d55de25fbb83bdc85
2016-12-14 11:19:06 -08:00
Alex Perovich 674bb7a0f8 Update project ToolsVersions to 14.0 (dotnet/corefx#12355)
Commit migrated from https://github.com/dotnet/corefx/commit/71de1aac5cf3e5dc87714ae0cc829e1fa98f7c5d
2016-10-05 12:50:37 -07:00
Jose Perez Rodriguez a04cc5f428 Changing test projects to default to netcoreapp1.1 instead of netcoreapp1.0
Commit migrated from https://github.com/dotnet/corefx/commit/d56046ba2a740409006dfe94f1043c5f32a0339d
2016-10-01 11:08:50 -07:00
Wes Haggard 80a46fca6b Remove IncludePerformanceTests from S.R.S.Formatters to fix Perf build
The Perf build is broken because that property is set and this project
doesn't even have any perf tests so removing the property from the
project.


Commit migrated from https://github.com/dotnet/corefx/commit/2593123103e81df1f23306a4f7458b22a345d635
2016-09-27 22:04:18 -07:00
Jose Perez Rodriguez 402de0ceda Removing pkgproj references from csprojs
Commit migrated from https://github.com/dotnet/corefx/commit/286c1be983e6dd7ef2e458494ba360d7c1423747
2016-09-09 10:07:59 -07:00
Jose Perez Rodriguez 72a0d666a2 Adding Reflection changes back after merge from master (dotnet/corefx#11386)
Adding Reflection changes back after merge from master


Commit migrated from https://github.com/dotnet/corefx/commit/65e117580923503b1e970c95798f19baff568b5e
2016-09-03 14:00:39 -07:00
Jose Perez Rodriguez 6cb037809c Revert "Expose all Reflection APIs in System.Runtime"
Commit migrated from https://github.com/dotnet/corefx/commit/1b9fa4bc4e4ed2da511374543c6460ba6b4f8c6b
2016-09-01 14:19:37 -07:00
Sepideh Khoshnood 2c5119c7e2 Expose all Reflection APIs in System.Runtime (dotnet/corefx#11099)
Expose all System.Reflection APIs

Commit migrated from https://github.com/dotnet/corefx/commit/b647c01bba129ad9194b6dee2de888c00c59f962
2016-09-01 11:31:12 -07:00
Tarek Mahmoud Sayed a13535db25 Move the Globalization and Encoding contracts to System.Runtime
This change is to add the globalization and encoding to System.Runtime and update
System.Globalization.* and System.Text.Encoding contarcts too just type forward instead of
having any implementation


Commit migrated from https://github.com/dotnet/corefx/commit/27ed033f3f3b2ad6b19db98db00c8789aed74a1b
2016-08-29 09:57:26 -07:00
Stephen Toub 8f213fd51d Separate exception serialization test into helper
Many of the serializable types in corefx are exceptions.  To make it easier to test them, I'm separating out a helper that can be used in both the BinaryFormatter tests and in each individual project's tests.


Commit migrated from https://github.com/dotnet/corefx/commit/4f4378cc325f597cd7748ba98eedb26f144e55f2
2016-08-22 09:30:15 -04:00
Jose Perez Rodriguez 240a2669cd Required changes post-merge to get a succesfull build in dev/api
Commit migrated from https://github.com/dotnet/corefx/commit/f03238e592e63ca00a01f6fb36d2ba6d126857fe
2016-08-17 10:30:47 -07:00
Jose Perez Rodriguez fca828ff09 Merging master
Commit migrated from https://github.com/dotnet/corefx/commit/232775cf23351ccad8d538b9421d8b9640655cad
2016-08-16 12:02:31 -07:00
Jose Perez Rodriguez a464fc82aa Fixing packages of S.Runtime, S.R.S.Primitives and S.R.S.Formatters
Commit migrated from https://github.com/dotnet/corefx/commit/17aa5578d9017d10618477d7eb8dc93d1ebdece1
2016-08-15 10:09:00 -07:00
Stephen Toub 687fdc4b4f Move serialization primitives to System.Runtime
We need BinaryFormatter to be able to serialize types from coreclr that use the various serialization types (e.g. ISerializable), which means those types must have the same identity as the ones BinaryFormatter recognizes, and we need a bunch of types all across corefx to be able to use these same types to implement serialization.  As such, the types are moving down to System.Runtime, and on coreclr, are type-forwarding to the implementations there.

There are a few outstanding issues:
- SR is not currently available in System.Runtime.  The few uses of SR in the versions of the code used for corert have been replaced by hardcoded strings and TODOs.
- Debug.Assert is not currently available in System.Runtime.  Asserts have been commented out with TODOs.
- To get things to build as types are moving around, P2P references are used.


Commit migrated from https://github.com/dotnet/corefx/commit/90be35920b48820536b8740f64d565ded55d811e
2016-08-15 09:47:08 -07:00