Formatting only, no behavior change. Produced mechanically: - dotnet format on the solution (3-space indent, Allman braces, `if(`, usings, `var`, System.Threading.Lock); the linked samples/Shared file is formatted through one project, because formatting it through both writes conflict markers into it. - Kingsrook blank lines the .NET formatter cannot express (K22-CODE-06, K22-CODE-CS-03): three blank lines around methods, constructors, types, and multi-line properties; at most one blank line inside code blocks and between single-line members; two after the using list. Applied with a Roslyn rewriter equivalent to Rider's resharper_blank_lines_* keys. - XML-family files (.csproj, .props, .slnx, .xaml, manifests, .runsettings) re-indented to three spaces. - git add --renormalize: every text file is stored with LF. Listed in .git-blame-ignore-revs so git blame skips it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: James Maes <james@kof22.com>
27 lines
742 B
C#
27 lines
742 B
C#
using KofTwentyTwo.AppKit.Updates;
|
|
using Microsoft.UI.Dispatching;
|
|
|
|
|
|
namespace AppKit.Sample.WinUI;
|
|
|
|
/// <summary>
|
|
/// Custom entry point (DISABLE_XAML_GENERATED_MAIN) so Velopack handles its install,
|
|
/// update, and uninstall hooks before any UI exists.
|
|
/// </summary>
|
|
public static class Program
|
|
{
|
|
[STAThread]
|
|
private static void Main()
|
|
{
|
|
VelopackStartup.Run();
|
|
|
|
// The remainder mirrors the XAML-generated Main.
|
|
WinRT.ComWrappersSupport.InitializeComWrappers();
|
|
Microsoft.UI.Xaml.Application.Start(callbackParams =>
|
|
{
|
|
SynchronizationContext.SetSynchronizationContext(new DispatcherQueueSynchronizationContext(DispatcherQueue.GetForCurrentThread()));
|
|
_ = new App();
|
|
});
|
|
}
|
|
}
|