Here is a Very quick tutorial on how to use command arguments for C# while in visual studio 2015 when dedugging (or running in program without debugging. In this tutorial I use the solution “Command-Line Arguments” of chapter 8 in the textbook; Visual c# How to program 6th edition by Deitel as an example.
Note: This WILL work on any Console Application in Visual C# 2015.
- Navigate to Debug.
- Click the properties at the bottom of the Debug menu.
(It will have your program name followed by the word properties.)
- There you can enter the command line arguments needed.
(In this example only one command line argument is needed, I chose 5.)
- Then run your program as normal ( <ctrl> F5 ).
Check out all my code solutions for Visual c# How to program 6th edition by Deitel Here.