Update debugging-updates.md

This commit is contained in:
Paul Betts
2016-02-14 18:00:34 -08:00
parent 11dad637c3
commit 846e3d6df2

View File

@@ -26,8 +26,10 @@ Executing MyApp from Visual Studio will now cause it to complete the update proc
You can catch thrown exceptions and log the results.
~~~cs
Task.Run(async () =>
{
using (var mgr = new UpdateManager("C:\\Projects\\MyApp\\Releases"))
{
await mgr.UpdateApp();
}
~~~
Alternatively, set up Splat Logging, see [here](https://github.com/Squirrel/Squirrel.Windows.Next/blob/6d7ae23602a3d9a7636265403d42c1090260e6dc/src/Update/Program.cs#L53) for an example.
@@ -35,4 +37,4 @@ Alternatively, set up Splat Logging, see [here](https://github.com/Squirrel/Squi
---
| Return: [Table of Contents](../readme.md) |
catch (Exception ex)
|----|