File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
test/Microsoft.NET.TestFramework/Commands Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -133,9 +133,17 @@ public override CommandResult Execute(IEnumerable<string> args)
133
133
args = new [ ] { "/restore" } . Concat ( args ) ;
134
134
}
135
135
136
- args = args . Concat ( new [ ] { "-v:diag" } ) ;
136
+ var command = base . Execute ( args ) ;
137
137
138
- return base . Execute ( args ) ;
138
+ var error = command . StdErr . ToString ( ) ;
139
+ var output = command . StdOut . ToString ( ) ;
140
+ if ( ( ! String . IsNullOrEmpty ( error ) && error . Contains ( "NU3003" ) ) || ( ! String . IsNullOrEmpty ( output ) && output . Contains ( "NU3003" ) ) )
141
+ {
142
+ args = args . Concat ( new [ ] { "-v:diag" } ) ;
143
+ command = base . Execute ( args ) ;
144
+ }
145
+
146
+ return command ;
139
147
}
140
148
141
149
public CommandResult ExecuteWithoutRestore ( IEnumerable < string > args )
You can’t perform that action at this time.
0 commit comments