locked
command line argument not working RRS feed

  • Question

  • I have the following problem:
    I created a project that compiles and runs correctly but, if I add a command line argument in the Debug properties, it is not considered.
    Instead, if I start the compiled executable from MS-DOS prompt, the argument is correctly considered.
    Is this a bug of Visual C# Express?
    Monday, February 25, 2008 10:08 AM

Answers

  • Solved the problem. I was making a mistake.
    Sorry for having wasted your time.
    Tuesday, February 26, 2008 9:50 AM

All replies

  • Can you show the code where you are extracting the command line?  Did you switch from debug to release mode after adding the command line parameter  to the property sheet?

     

    What does the command look like when you enter it into the command prompt?

     

    A little more detail would be helpful.

     

    Chris

    Monday, February 25, 2008 7:06 PM
  • Solved the problem. I was making a mistake.
    Sorry for having wasted your time.
    Tuesday, February 26, 2008 9:50 AM