简体   繁体   中英

How to save run configurations - Visual Studio Mac

I am developing an asp.net application on macOS with Visual Studio for Mac, and I can specify a custom run configuration.

There seems to be no way to specify a run profile, where all arguments and settings in the custom configuration are saved, instead of reentering command line arguments every time.

Is there a way to do this easily in VS for Mac? Or is that feature not available yet...

No, unfortunately you can't save it but there is workaround for this. You get the args in the main, just change it to your configuration and put it to code when you need it.

string[] args = new[] {..}

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