gpt4 book ai didi

c# - 在 VS 中通过 Main(string[] args) 传递参数

转载 作者:行者123 更新时间:2023-11-30 18:58:28 25 4
gpt4 key购买 nike

当我尝试通过 Visual Studio 运行多个项目时,如何通过 Main(string[] args) 传递参数。

我通常右键单击项目并选择:调试 -> 启动新实例。此时我该如何传递参数?

最佳答案

如果您使用调试器运行,您可以通过项目设置更改应用程序的调用方式。

打开Project Settings > Debug,然后设置Command Line Arguments

enter image description here

关于c# - 在 VS 中通过 Main(string[] args) 传递参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39721076/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com