Update S.T.Json sources with ifdefs so that a netstandard compatible source package...
authorAhson Khan <ahkha@microsoft.com>
Thu, 17 Jan 2019 20:50:48 +0000 (12:50 -0800)
committerGitHub <noreply@github.com>
Thu, 17 Jan 2019 20:50:48 +0000 (12:50 -0800)
commit0d4e63be323b4d2673bf7372e5468ecff4ac333c
tree7c9c9e33622c97b0534dc050325af4938941e415
parent0e2df777adde0cb84b92edb21a88b32a4f0be108
Update S.T.Json sources with ifdefs so that a netstandard compatible source package can be produced (dotnet/corefx#34611)

* Test changes necessary to build S.T.Json sources targetting netstandard

* Revert unnecessary change from private to internal.

* Revert props and csproj changes to support netstandard along with test
changes.

* Address PR feedback.

* Revert "Revert props and csproj changes to support netstandard along with test"

This reverts commit dotnet/corefx@7a2f22e127c4ef0476f20bddd64796045f79ddb5.

* Fix code formatting/spacing.

* Invert the ifdef so it is false by default (for source package) and add
comments.

Commit migrated from https://github.com/dotnet/corefx/commit/36893daefdc114306efe86eca4170836bc02ff68
15 files changed:
src/libraries/System.Text.Json/ref/Configurations.props
src/libraries/System.Text.Json/ref/System.Text.Json.csproj
src/libraries/System.Text.Json/src/Configurations.props
src/libraries/System.Text.Json/src/System.Text.Json.csproj
src/libraries/System.Text.Json/src/System/Text/Json/Reader/JsonReaderHelper.cs
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.TryGet.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterHelper.Escaping.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterHelper.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.cs
src/libraries/System.Text.Json/tests/Configurations.props
src/libraries/System.Text.Json/tests/FixedSizedBufferWriter.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests.csproj
src/libraries/System.Text.Json/tests/Utf8JsonReaderTests.MultiSegment.cs
src/libraries/System.Text.Json/tests/Utf8JsonReaderTests.cs
src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs