VSCode Asp.Net core command line arguments when debugging?

只愿长相守 提交于 2021-02-08 09:15:34

问题


Just been reading this article from Scott Allen.

The approach to specify command line arguments to .net core seems intersing, but how do we pass those arguments from VS Code when running with debugger (Normally using F5 command if launch.json is setup)?

e.g dotnet run dropdb migratedb seeddb


回答1:


Copying over answer from comment


In your launch.json, try adding:

"args": ["dropdb", "migratedb", "seeddb"]

to the target launch configuration.



来源:https://stackoverflow.com/questions/41189755/vscode-asp-net-core-command-line-arguments-when-debugging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!