Skip to content

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.

2 participants