Console application with args: Is there a way to pass args from VS when debugging?
-
Hi all, I want to run a console application in C# from visual studio in debug mode (by pressing F5). Is there a way to enter the arguments thru VS? Thank you.
"Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com
-
Hi all, I want to run a console application in C# from visual studio in debug mode (by pressing F5). Is there a way to enter the arguments thru VS? Thank you.
"Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com
I think you can set commandline arguments in Project settings :)
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
-
Hi all, I want to run a console application in C# from visual studio in debug mode (by pressing F5). Is there a way to enter the arguments thru VS? Thank you.
"Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com
There sure is. Take a look at your project's properties under the debug tab (or wherever it is on the version of Visual Studio your using). You'll find a field called Command Line Arguments.
Regards, Rob Philpott.