static void Main(string[] args) { string gameFolder = @"..\..\..\ProjectThralldom"; string sitefolder = @"..\..\..\Thralldom.Web"; bool authenticationSuccessful = true; AppBuilder builder = null; do { Console.Write("User: "******"thralldom.net", gameFolder, sitefolder); authenticationSuccessful = true; } catch (FtpCommandException) { Console.WriteLine(); Console.WriteLine("Invalid credentials. Try again."); authenticationSuccessful = false; } }while (!authenticationSuccessful); Console.WriteLine("Authentication successful"); Console.WriteLine(); builder.BuildGame(); builder.Deploy(); }
static void Main(string[] args) { string gameFolder = @"..\..\..\ProjectThralldom"; string sitefolder = @"..\..\..\Thralldom.Web"; bool authenticationSuccessful = true; AppBuilder builder = null; do { Console.Write("User: "******"thralldom.net", gameFolder, sitefolder); authenticationSuccessful = true; } catch (FtpCommandException) { Console.WriteLine(); Console.WriteLine("Invalid credentials. Try again."); authenticationSuccessful = false; } } while (!authenticationSuccessful); Console.WriteLine("Authentication successful"); Console.WriteLine(); builder.BuildGame(); builder.Deploy(); }