How to pass parameters to Main() C# in visual studio for mac

后端 未结 5 1849
别跟我提以往
别跟我提以往 2021-01-18 05:59

I\'ve looked at the different resources for other editions of visual studio but it\'s not clear to me how to call Main with an arg here

using System;

namesp         


        
5条回答
  •  暖寄归人
    2021-01-18 06:38

    The arguments to main will be command line parameters. If running from within visual studio, you can setup the the

    command line arguments property in the "configuration properties" of your project.

    For running it from command line, just invoke the exe file with parameters.

    Path/to/YourProg.exe arg1 arg2
    

提交回复
热议问题