Skip to content

Instantly share code, notes, and snippets.

@anaisbetts
Created June 21, 2012 07:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anaisbetts/2964410 to your computer and use it in GitHub Desktop.
Save anaisbetts/2964410 to your computer and use it in GitHub Desktop.
// Sum total of code required to update your app using NSync
var updateManager = new UpdateManager("MyCoolApp", "http://mycoolapp.com/update");
updateManager.UpdateApp()
.Subscribe(
x => Console.WriteLine("Update worked! Now at {0}", x.Version),
ex => Console.WriteLine("No Dice! {0}", ex);
@stevenh512
Copy link

Wow, that easy? Nice.

Haven't touched .NET in years but one thing I always loved was the simple auto-updating that comes with ClickOnce. Nice to see it's just as simple without ClickOnce now. :)

@steveoh
Copy link

steveoh commented Jun 21, 2012

what would be located at mycoolap.com/update? Whats the process to create what's needed there or is it just the whole app package?

@stevenh512
Copy link

See the implementation specs for more info on that.

I'm curious if this would work (without major hacks) with Mono under Linux or OSX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment