gpt4 book ai didi

asp.net-core - 调试器中的 ASP.NET Core 命令行参数

转载 作者:行者123 更新时间:2023-12-02 17:47:51 24 4
gpt4 key购买 nike

当我使用 net 4.7 代码调试一些 asp.net 时,我可以在调试器中指定一些参数,并且 main 函数正在获取它们。

我意识到 .net core 不会发生这种情况;我可以在调试器选项卡的“应用程序参数”中放置我想要的任何内容,应用程序永远不会看到该数据。

这是否又是VS接口(interface)与.net core不匹配的情况?或者我错过了一些明显的事情?

<小时/>

添加更多详细信息:

enter image description here

enter image description here

最佳答案

请确认项目设置文件更改已保存。

对于 .NET Core 项目,即使解决方案已编译,它也不会自动保存。

enter image description here

关于asp.net-core - 调试器中的 ASP.NET Core 命令行参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48392868/

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