When running an application, you often need to pass arguments to the Main method. On Visual Studio, you can pass in command-line argument via Property setting for the StartUp project (If you have more than one project in the solution, this will be the project in
bold. You can right click on a project name and select "Set as StartUp Project" to make it one).
Double-click on the project's Property, and the screen should display something similar to the above picture.
Then go to Debug tab on the right, and write in command-line parameter in "Command line arguments" section (each argument must be separated by a whitespace).
No comments:
Post a Comment