DevAudit icon indicating copy to clipboard operation
DevAudit copied to clipboard

Impossible to ran DevAudit from TFS Agent

Open llotall opened this issue 4 years ago • 2 comments

Trying to Run devaudit command from under the TFS agent and get Exception message.

v3.4.0.20
Runtime error! DevAudit will now terminate.

Unhandled Exception: System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.Console.set_CursorVisible(Boolean value)
   at DevAudit.CommandLine.Program.Main(String[] args) in D:\a\1\s\DevAudit.CommandLine\Program.cs:line 663

I use azure pipline task steps: - powershell: devaudit netcore -f somepath/....deps.json

But when i use the same command locally on my work machine all is good

llotall avatar Sep 14 '20 12:09 llotall

Resolved this Issue. I just forgot add -n (non interactive flag)

PLEASE! Add more informative exception messages with error assumptions. This will improve the interaction with devAudit tool. In my case you can show message like (Please check possible reasons of error:

  • not specified -n non interactive flag) e.t.c.

Thank you in advance!

llotall avatar Sep 14 '20 13:09 llotall

Thanks for the heads up. I will look into improving the error messaging, but I wonder if it would just be better to run by default in non-interactive mode. It does not really add that much to the experience.

ken-duck avatar Sep 19 '20 23:09 ken-duck