Skip to content
Discussion options

You must be logged in to vote

You can add skipVersionCheck to the args on the command line to skip it!

if (latestVersion > version && args.Contains("skipVersionCheck"))
{
_logger.LogWarning("You are currently running version {Version} and a newer version ({LatestVersion}) is available. You should upgrade now using Chocolatey command 'choco upgrade vsts-sync-migrator' from the command line.", version, latestVersion);
#if !DEBUG
Console.WriteLine("Do you want to continue? (y/n)");
if (Console.ReadKey().Key != ConsoleKey.Y)
{
_logger.LogWarning("User aborted to update version");

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@KenzoB73
Comment options

@MrHinsh
Comment options

@MrHinsh
Comment options

Answer selected by MrHinsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants