diff --git a/src/BuildVision/Core/BuildVisionPackage.cs b/src/BuildVision/Core/BuildVisionPackage.cs index 531cde15..ef240f01 100644 --- a/src/BuildVision/Core/BuildVisionPackage.cs +++ b/src/BuildVision/Core/BuildVisionPackage.cs @@ -27,7 +27,8 @@ namespace BuildVision.Core { [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] - [ProvideAutoLoad(UIContextGuids80.SolutionExists)] // This will lead to a warning on startup + //[ProvideAutoLoad(UIContextGuids80.SolutionExists, flags: PackageAutoLoadFlags.BackgroundLoad)] // This will lead to a warning on startup + [ProvideAutoLoad(VSConstants.UICONTEXT.SolutionOpening_string, PackageAutoLoadFlags.BackgroundLoad)] [ProvideMenuResource("Menus.ctmenu", 1)] [ProvideToolWindow(typeof(BuildVisionPane))] [Guid(PackageGuids.GuidBuildVisionPackageString)] @@ -75,7 +76,7 @@ private void Current_DispatcherUnhandledException(object sender, DispatcherUnhan protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) { await base.InitializeAsync(cancellationToken, progress); - + await JoinableTaskFactory.SwitchToMainThreadAsync(DisposalToken); await ShowToolWindowCommand.InitializeAsync(this);