Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL committed May 19, 2022
1 parent 3841580 commit 0a4eace
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ST.Client.Desktop.Avalonia.App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ private sealed class ProgramHost : IApplication.IDesktopProgramHost

public void InitVisualStudioAppCenterSDK()
{
#if WINDOWS || XAMARIN_MAC || __MOBILE__ || __ANDROID__ || __IOS__
#pragma warning disable IDE0079 // 请删除不必要的忽略
#pragma warning disable CA1416 // 验证平台兼容性
VisualStudioAppCenterSDK.Init();
#pragma warning restore CA1416 // 验证平台兼容性
#pragma warning restore IDE0079 // 请删除不必要的忽略
#endif
}

public void OnStartup() => Program.OnStartup(this);
Expand Down

0 comments on commit 0a4eace

Please sign in to comment.