I have an command line that uses arguments, I have no problem with this, but each time I want to test the application, I need to compile it, run the CMD, call the application with the parameters from the CMD, because I didn't find any solution that let me dynamically pass arguments to the console in Visual Studio Any idea about that? Thanks a lot!!
我有一个使用参数的命令行,我对此没有任何问题,但每次我想测试应用程序时,我需要编译它,运行CMD,使用CMD中的参数调用应用程序,因为我没有'找到任何解决方案,让我动态地将参数传递给Visual Studio中的控制台有任何想法吗?非常感谢!!
3 个解决方案
#1
53
Goto Project->Properties
and click the Debug
Tab.
转到项目 - >属性,然后单击调试选项卡。
There is a section for command line arguments:
命令行参数有一个部分:
#2
4
Right click your project in VS -> Properties -> Debug tab
在VS - > Properties - > Debug选项卡中右键单击您的项目
There is an area where you can specify command line arguments. When you debug your project, VS will start it up with these args.
您可以在一个区域中指定命令行参数。在调试项目时,VS将使用这些args启动它。
#3
4
Go to the project properties - Debug section, and under the Start Options heading there is a section for Command line arguments.
转到项目属性 - “调试”部分,在“开始选项”标题下,有一个用于命令行参数的部分。
#1
53
Goto Project->Properties
and click the Debug
Tab.
转到项目 - >属性,然后单击调试选项卡。
There is a section for command line arguments:
命令行参数有一个部分:
#2
4
Right click your project in VS -> Properties -> Debug tab
在VS - > Properties - > Debug选项卡中右键单击您的项目
There is an area where you can specify command line arguments. When you debug your project, VS will start it up with these args.
您可以在一个区域中指定命令行参数。在调试项目时,VS将使用这些args启动它。
#3
4
Go to the project properties - Debug section, and under the Start Options heading there is a section for Command line arguments.
转到项目属性 - “调试”部分,在“开始选项”标题下,有一个用于命令行参数的部分。