Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Windows 7+ JumpList support #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add Windows 7+ JumpList support #43

wants to merge 3 commits into from

Conversation

Elepover
Copy link

No description provided.

{
JumpTask jumpTask = new JumpTask()
{
ApplicationPath = Assembly.GetExecutingAssembly().Location,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Assembly.GetExecutingAssembly().Location may changed after update

Copy link
Author

@Elepover Elepover Mar 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

走 ClickOnce

得想个办法让弹幕姬获取到 ClickOnce 的 .appref-ms 文件

也许可以用 ApplicationDeployment.CurrentDeployment.ActivationUri.ToString() 来替代程序路径(并且同时取消对打开方式检查中“房间号启动”方式的豁免),但因为没有 ClickOnce 调试条件而一时无法继续

以及,如果直接打开 .appref-ms 的话,参数传递也是个问题

另一个思路

应用可以读取并修改自己已有的 JumpList, 所以也可以尝试在新版本启动时检测检测现有的 JumpList 中的项目并逐个修正

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

添加了可执行文件名变动修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants