问题
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