How To Use Command-Line Arguments In Visual C# 2015

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.

  1. Navigate to Debug.
  2. Click the properties at the bottom of the Debug menu.
    (It will have your program name followed by the word properties.)
  3. There you can enter the command line arguments needed.
    (In this example only one command line argument is needed, I chose 5.)
  4. 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.

Advertisements

1 Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s