Skip to content

Fixing DrtBase.cs and updating global.json version #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2018
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 global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tools": {
"dotnet": "3.0.100-preview-009756",
"dotnet": "3.0.100-preview-009764",
"vswhere": "2.5.2"
},
"msbuild-sdks": {
Expand Down
20 changes: 17 additions & 3 deletions src/Microsoft.DotNet.Wpf/test/Common/TestServices/DrtBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,13 @@ public override void Write(char value)
_logFile.Flush();
}

_output.WriteLine($"{value}");
try
{
_output.WriteLine($"{value}");
}
catch
{
}
}
}

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

var sb = new StringBuilder();
sb.Append(buffer, index, count);
_output.WriteLine(sb.ToString());
try
{
_output.WriteLine(sb.ToString());
}
catch { }
}
}

Expand Down Expand Up @@ -2764,7 +2774,11 @@ public override void Write(string value)
_logFile.Flush();
}

_output.WriteLine(value);
try
{
_output.WriteLine(value);
}
catch { }
}
}

Expand Down