public static void Main(string[] args) { //VSO Alternate Authentication Credential https://www.visualstudio.com/integrate/get-started/auth/overview string _userName = ConfigurationManager.AppSettings["user"]; string _password = ConfigurationManager.AppSettings["password"]; string _url = ConfigurationManager.AppSettings["url"]; vso = new VSOQuery(_url, _userName, _password); Task.Run(() => MainAsync()).Wait(); }
static void Main(string[] args) { //Using alternate authentication credential, see app.config. //Could also use OAuth https://www.visualstudio.com/integrate/get-started/auth/overview string _userName = ConfigurationManager.AppSettings["user"]; string _password = ConfigurationManager.AppSettings["password"]; string _url = ConfigurationManager.AppSettings["url"]; vso = new VSOQuery(_url, _userName, _password); Console.WriteLine("Creating the projects"); Task.Run(() => MainAsync()).Wait(); Console.WriteLine("All done! Press any key to continue..."); Console.ReadKey(); }