简体   繁体   中英

VSCode Asp.Net core command line arguments when debugging?

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)?

eg dotnet run dropdb migratedb seeddb

Copying over answer from comment


In your launch.json , try adding:

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

to the target launch configuration .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM