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

后端 未结 5 1879
别跟我提以往
别跟我提以往 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:37

    As Joseph Woodward stated, you supply them in the arguments field under Project Options > Run > Configurations > Your_configuration_here.

    Note that a project rebuild is necessary for these arguments to successfully be passed into Main - otherwise args will continue to be null.

提交回复
热议问题