Is there a way to prompt the user for input during a NAnt build? I want to execute a command that takes a password, but I don’t want to put the password into the build script.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m using a script for now, but I’d love to hear if there’s a prebuilt method already available. Many thanks to sundar for the ForegroundColor trick.
I’m not sure if it matters whether you use Project.Log or go direct to Console.WriteLine(), any NAnt ninjas want to educate me?
Here’s the script and a sample target that uses it: