Upgrade to .net framework 4.0

This commit is contained in:
qianlifeng
2015-01-14 22:19:44 +08:00
parent 3ad2b2bfcc
commit bc341d193f
30 changed files with 721 additions and 674 deletions

View File

@@ -0,0 +1,31 @@
using Squirrel;
namespace Wox.Core.Updater
{
public class UpdaterManager
{
private static UpdaterManager instance;
public static UpdaterManager Instance
{
get
{
if (instance == null)
{
instance = new UpdaterManager();
}
return instance;
}
}
private UpdaterManager() { }
public void CheckUpdate()
{
using (var mgr = new UpdateManager("https://path/to/my/update/folder", "nuget-package-id", FrameworkVersion.Net45))
{
mgr.UpdateApp();
}
}
}
}