Skip to content

Commit 473d951

Browse files
committed
ui: enable IDE Avalonia designer
1 parent 99e4c69 commit 473d951

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/shared/Git-Credential-Manager/Program.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Threading;
33
using Atlassian.Bitbucket;
4+
using Avalonia;
45
using GitHub;
56
using GitLab;
67
using Microsoft.AzureRepos;
@@ -101,5 +102,11 @@ private static void AppMain(object o)
101102
Dispatcher.MainThread.Shutdown();
102103
}
103104
}
105+
106+
// Required for Avalonia designer
107+
static AppBuilder BuildAvaloniaApp() =>
108+
AppBuilder.Configure<AvaloniaApp>()
109+
.UsePlatformDetect()
110+
.LogToTrace();
104111
}
105112
}

0 commit comments

Comments
 (0)