mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Update debugging-updates.md
This commit is contained in:
@@ -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)
|
||||
|----|
|
||||
|
||||
Reference in New Issue
Block a user