@@ -126,6 +126,15 @@ public async Task<bool> InstallDotnetToolsAsync()
126
126
{
127
127
try
128
128
{
129
+ // Install dotnet-dump first so we can catch any failures from running dotnet after this (installing tools, running tests, etc.)
130
+ await ProcessUtil . RunAsync ( $ "{ Options . DotnetRoot } /dotnet",
131
+ $ "tool install dotnet-dump --tool-path { Options . HELIX_WORKITEM_ROOT } --version 5.0.0-*",
132
+ environmentVariables : EnvironmentVariables ,
133
+ outputDataReceived : Console . WriteLine ,
134
+ errorDataReceived : Console . Error . WriteLine ,
135
+ throwOnError : false ,
136
+ cancellationToken : new CancellationTokenSource ( TimeSpan . FromMinutes ( 2 ) ) . Token ) ;
137
+
129
138
Console . WriteLine ( $ "Adding current directory to nuget sources: { Options . HELIX_WORKITEM_ROOT } ") ;
130
139
131
140
await ProcessUtil . RunAsync ( $ "{ Options . DotnetRoot } /dotnet",
@@ -161,13 +170,6 @@ await ProcessUtil.RunAsync($"{Options.DotnetRoot}/dotnet",
161
170
throwOnError : false ,
162
171
cancellationToken : new CancellationTokenSource ( TimeSpan . FromMinutes ( 2 ) ) . Token ) ;
163
172
164
- await ProcessUtil . RunAsync ( $ "{ Options . DotnetRoot } /dotnet",
165
- $ "tool install dotnet-dump --tool-path { Options . HELIX_WORKITEM_ROOT } --version 5.0.0-*",
166
- environmentVariables : EnvironmentVariables ,
167
- outputDataReceived : Console . WriteLine ,
168
- errorDataReceived : Console . Error . WriteLine ,
169
- throwOnError : false ) ;
170
-
171
173
return true ;
172
174
}
173
175
catch ( Exception e )
0 commit comments