Passing command line parameters with Visual Studio C#

前端 未结 2 1969
情书的邮戳
情书的邮戳 2020-11-29 09:02

How do I set the command line arguments for a console application I am debugging in Visual Studio? I\'ve done this in Eclipse, is there a similar option in Visual Studio?

2条回答
  •  感情败类
    2020-11-29 09:40

    Command Line Arguments can be set in the Debug tag in the project's Properties window:

    enter image description here

    Alternatively, there is an option to add StartArguments element to your .csproj.user file:

    
    
      
        
        
        
        
        
        
        en-US
        false
      
      
        Argument1 Argument2   <<== THIS LINE
      
    
    

提交回复
热议问题