1、通过配置project属性传递。如图:
2、通过代码传递
3、通过命令行传递
Main(string[] args)之args传递的几种方式
原文:https://www.cnblogs.com/wind721888/p/10711756.html