1

Closed

CleanProject: Error if /Z argument is missing

description

Hi,
if you configure the arguments with only /D:"$(SolutionDir)" you get an error.
Thanks
Closed May 7, 2012 at 11:30 PM by ronjacobs
Added error handling code to check for the InvalidOperationException that occurs when the console is redirected to output window in Visual Studio.

comments

ronjacobs wrote May 7, 2012 at 9:24 PM

Was this the error?
Unhandled Exception: System.InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try Console.Read.
at System.Console.ReadKey(Boolean intercept)
at CmdLine.CommandLine.PromptKey(String prompt, Char[] allowedKeys)
at CleanProject.Program.ConfirmOptions()
at CleanProject.Program.Main()

delfo wrote May 8, 2012 at 6:31 AM

Yes