Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from appending +<commitId>, which breaks DTAAgent.
-->
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<VersionPrefix>18.8.0</VersionPrefix>
<VersionPrefix>18.8.1</VersionPrefix>
<PreReleaseVersionLabel>release</PreReleaseVersionLabel>
<PreReleaseVersionIteration></PreReleaseVersionIteration>
<!-- Allowed values: '', 'prerelease', 'release'. Set to 'release' when stabilizing. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization.Metadata;

using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Serialization;
using Microsoft.VisualStudio.TestPlatform.Common.DataCollection;
Expand Down Expand Up @@ -74,6 +75,11 @@ static JsonDataSerializer()
NumberHandling = JsonNumberHandling.AllowReadingFromString,
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
ReferenceHandler = ReferenceHandler.IgnoreCycles,
// Assign an explicit reflection-based resolver. When TypeInfoResolver is null, STJ falls back to
// the implicit default resolver which is disabled when a test project sets
// JsonSerializerIsReflectionEnabledByDefault=false (that switch flows into the testhost runtimeconfig),
// making testhost throw while deserializing the first protocol message and the runner time out. See #16274.
TypeInfoResolver = new DefaultJsonTypeInfoResolver(),
};

private static partial (int version, string? messageType) ParseHeaderFromJson(string rawMessage)
Expand Down
Loading