Much like this question is there a way to make Visual Studio 2010 prompt me for command line arguments every time before launching? For one of my projects this would be nice since the arguments need to change on various runs, and it would be easier to do than to keep editing the properties of the project.
I don't think there's any way of getting Visual Studio itself to prompt for arguments - but you could create a small and simple app which prompted for the appropriate values in Windows Forms, then just invoked the Main method of the "real" project... or even launched it as a separate process.
This would have the additional benefit of making it easier to use in terms of getting the right arguments, I'd imagine.
You could try something like this in your Main:
if (args.Length == 0)
{
Console.WriteLine("Please provide an argument.");
string strArg = Console.ReadLine();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With