-
Notifications
You must be signed in to change notification settings - Fork 12
Handling multiple updates #4
Copy link
Copy link
Open
Description
I added a bit of code to the update process to handle multiple pending updates.
In the server manifest I added
<manifests>
<manifest>
....
</manifest>
<manifest>
...
</manifest>
</manifests>
// download manifest
XDocument doc = XDocument.Load(Settings.Default.RemoteManifest);
// b2k -- look for multiple versions in the file.
var versions = doc.Descendants("version");
if (versions.Count() > 1)
{
var nextVersion =
versions.SkipWhile(node => new Version(node.Value) <= appVersion ).FirstOrDefault();
if (nextVersion != null && nextVersion.Parent != null)
{
doc = new XDocument(nextVersion.Parent.ToString());
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels