File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed
src/MsBuildPipeLogger.Server Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 1
1
# 1.1.1
2
2
3
+ - [ Fix] Handles premature stream termination when reading events in the server
4
+
3
5
# 1.1.0
4
6
5
7
- [ Feature] Support for server read cancellation with a ` CancellationToken `
Original file line number Diff line number Diff line change @@ -85,9 +85,6 @@ Task("Restore")
85
85
{
86
86
MSBuildSettings = msBuildSettings
87
87
} ) ;
88
-
89
- // Run NuGet CLI restore to handle the Framework test projects
90
- NuGetRestore ( $ "./{ projectName } .sln") ;
91
88
} ) ;
92
89
93
90
Task( "Build" )
@@ -106,7 +103,7 @@ Task("Build")
106
103
Task( "Test" )
107
104
. Description ( "Runs all tests." )
108
105
. IsDependentOn ( "Build" )
109
- . Does ( ( ) =>
106
+ . DoesForEach ( GetFiles ( "./tests/*Tests/*.csproj" ) , project =>
110
107
{
111
108
DotNetCoreTestSettings testSettings = new DotNetCoreTestSettings ( )
112
109
{
@@ -123,12 +120,10 @@ Task("Test")
123
120
testSettings . TestAdapterPath = GetDirectories ( $ "./tools/Appveyor.TestLogger.*/build/_common") . First ( ) ;
124
121
}
125
122
126
- foreach ( var project in GetFiles ( "./tests/*Tests/*.csproj" ) )
127
- {
128
- Information ( $ "Running tests in { project } ") ;
129
- DotNetCoreTest ( MakeAbsolute ( project ) . ToString ( ) , testSettings ) ;
130
- }
131
- } ) ;
123
+ Information ( $ "Running tests in { project } ") ;
124
+ DotNetCoreTest ( MakeAbsolute ( project ) . ToString ( ) , testSettings ) ;
125
+ } )
126
+ . DeferOnError ( ) ;
132
127
133
128
Task( "Pack" )
134
129
. Description ( "Packs the NuGet packages." )
Original file line number Diff line number Diff line change @@ -81,12 +81,20 @@ public BuildEventArgs Read()
81
81
return null ;
82
82
}
83
83
84
- BuildEventArgs args = _buildEventArgsReader . Read ( ) ;
85
- if ( args != null )
84
+ try
86
85
{
87
- Dispatch ( args ) ;
88
- return args ;
86
+ BuildEventArgs args = _buildEventArgsReader . Read ( ) ;
87
+ if ( args != null )
88
+ {
89
+ Dispatch ( args ) ;
90
+ return args ;
91
+ }
89
92
}
93
+ catch ( EndOfStreamException )
94
+ {
95
+ // The stream may have been closed or otherwise stopped
96
+ }
97
+
90
98
return null ;
91
99
}
92
100
You can’t perform that action at this time.
0 commit comments