Skip to content

Commit dc03354

Browse files
Merge pull request #21 from dotnet/users/vatsanm/drt-fixup
Fixing DrtBase.cs and updating global.json version
2 parents d4b5f18 + 21dad8a commit dc03354

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tools": {
3-
"dotnet": "3.0.100-preview-009756",
3+
"dotnet": "3.0.100-preview-009764",
44
"vswhere": "2.5.2"
55
},
66
"msbuild-sdks": {

src/Microsoft.DotNet.Wpf/test/Common/TestServices/DrtBase.cs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,13 @@ public override void Write(char value)
27122712
_logFile.Flush();
27132713
}
27142714

2715-
_output.WriteLine($"{value}");
2715+
try
2716+
{
2717+
_output.WriteLine($"{value}");
2718+
}
2719+
catch
2720+
{
2721+
}
27162722
}
27172723
}
27182724

@@ -2733,7 +2739,11 @@ public override void Write(char[] buffer, int index, int count)
27332739

27342740
var sb = new StringBuilder();
27352741
sb.Append(buffer, index, count);
2736-
_output.WriteLine(sb.ToString());
2742+
try
2743+
{
2744+
_output.WriteLine(sb.ToString());
2745+
}
2746+
catch { }
27372747
}
27382748
}
27392749

@@ -2764,7 +2774,11 @@ public override void Write(string value)
27642774
_logFile.Flush();
27652775
}
27662776

2767-
_output.WriteLine(value);
2777+
try
2778+
{
2779+
_output.WriteLine(value);
2780+
}
2781+
catch { }
27682782
}
27692783
}
27702784

0 commit comments

Comments
 (0)