We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 905b1e3 + 348977d commit 316356fCopy full SHA for 316356f
test/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs
@@ -133,7 +133,17 @@ public override CommandResult Execute(IEnumerable<string> args)
133
args = new[] { "/restore" }.Concat(args);
134
}
135
136
- return base.Execute(args);
+ var command = base.Execute(args);
137
+
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;
147
148
149
public CommandResult ExecuteWithoutRestore(IEnumerable<string> args)
0 commit comments