跳转列表不能在C#应用程序中工作

我正在尝试在我的C#应用​​程序中使用最近和经常跳转列表。 我正在使用Windows API Codepack v1.1(http://code.msdn.microsoft.com/WindowsAPICodePack)。 我每次启动应用程序时初始化JumpLists,每当我在应用程序中打开一个项目时,我将AddRecent()添加到JumpList。

有些东西是缺less的,因为当右键单击任务栏中的应用程序图标时,跳转列表根本就不显示。 我有一个文件出现一次,但就是这样!

初始化:

private void InitializeJumpLists() { if (TaskbarManager.IsPlatformSupported) { JumpList recentJumpList = null; JumpList frequentJumpList = null; TaskbarManager.Instance.ApplicationId = Application.ProductName; recentJumpList = JumpList.CreateJumpList(); recentJumpList.KnownCategoryToDisplay = JumpListKnownCategoryType.Recent; recentJumpList.Refresh(); frequentJumpList = JumpList.CreateJumpList(); frequentJumpList.KnownCategoryToDisplay = JumpListKnownCategoryType.Frequent; frequentJumpList.Refresh(); } } 

开放项目:

  private void OpenProject(string path, bool isFromRecentFilesList) { DialogResult result = ConfirmProjectClosing(); if (result == DialogResult.Yes) Save(); else if (result == DialogResult.Cancel) return; using (new Wait()) { //Code here opens the project, etc. //Try to add the file to the Jump List. if (TaskbarManager.IsPlatformSupported) JumpList.AddToRecent(path); //Code here finished up. } } 

我错过了什么?

在这个页面上发生了什么事情与你所看到的问题密切相关?

这原来是ClickOnce部署的限制。 使用正常的安装项目,安装后,跳转列表按预期工作。