Commit Graph
12 Commits
Author SHA1 Message Date
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
Deepak Shankargouda e5ec24a634 fixing issue 10535 (dotnet/corefx#10536)
Commit migrated from https://github.com/dotnet/corefx/commit/b39944b8bad5d859ff1a5d9e64ec4cc23cfee142
2016-08-02 19:08:25 -07:00
Stephen Toub 63f23889e3 Add cross-process BinaryFormatter test
All of the tests I previously added serialized/deserialized to MemoryStreams handled by the same process.

This adds a test that serializes/deserializes with FileStreams that are read and written by other processes.


Commit migrated from https://github.com/dotnet/corefx/commit/33c745a0cd9ac7f4f3354279cb952d0f1d4003dc
2016-07-21 20:30:32 -07:00
Stephen Toub 87b2f2c9e1 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/60660405f37543c366ad02da6ec63bc5673dd355
2016-07-19 00:33:23 -07:00
Stephen Toub 87ce158210 Add BinaryFormatter to corefx
This ports BinaryFormatter from desktop, along with all of the supporting types and general Formatter-related types.  I've added a bunch of tests, bringing code coverage up to ~80%, though there's still more that can/should be done.  I did not port remoting-specific functionality, though there are still some remnants I've left as they were enabled in the runtime even when remoting wasn't compiled in, and it wasn't clear if they were serving additional purposes.


Commit migrated from https://github.com/dotnet/corefx/commit/e45a01a4840700d75bb1dd3bf7d0e10ff6a3bc82
2016-07-19 00:33:18 -07:00
Karthik Rajasekaran 5c93b350d3 Add NugetTargetMoniker to test projects and update remaining project references to pkgproj
Commit migrated from https://github.com/dotnet/corefx/commit/13e03705ced065850dc65900fccfd930426e87d7
2016-06-29 12:30:05 -07:00
Karthik Rajasekaran d73f6518c3 Update CoreFX tests to compile against a minimum of netstandard1.3 and add supports clauses for tests
CoreFX tests will now compile against netstandard1.3 as references and will now deploy for the platforms listed in their respective supports clause, provided the appropriate TestTFM is passed in.  The supports are fully listed inside runtime.json in the new TestSuite metapackage in buildtools. The tests will default to netcoreapp1.0 as their TestTFM.

CoreFx test projects now utilise a test csproj to pkgproj reference which determine the appropriate compile time and runtime assets needed.

Dependent on https://github.com/dotnet/buildtools/pull/770


Commit migrated from https://github.com/dotnet/corefx/commit/b4841454de7ddcd75e92e2bb24ebb238a82df43f
2016-06-15 11:23:11 -07:00
Krzysztof Cwalina bdc2980429 Adding Binary Serialization Programming Model
We decided to add binary serialization programming model (ISerializable, etc.) as an out of band package.
This will allow existing code implementing the SPM to compile for .NET Core without changes.

This is the ferst in a series of commits to ease porting of code involving serialization.
In subsequent commits, we are planing to:
1. Fill in the details of SerializationInfo
2. Add Exception.set_StackTrace
3. Add FormatterServices.GetUninitializedObject
4. Add BinaryFormatter (the exact semantics TBD)


Commit migrated from https://github.com/dotnet/corefx/commit/db70c8e2ba100b2f0f8fa1ace82dd1988200b269
2016-05-04 17:14:01 -07:00