Getting the path of a ClickOnce File Association

主宰稳场 提交于 2019-12-12 08:59:03

问题


I've using ClickOnce and I'm struggling with file associations. I can set up the association. Double-clicking an associated file even launches the application.

...However...

I don't know how to get access to the path of the file clicked to launch the App.

Has anyone come across this before?


回答1:


The official .NET way (w/o Registry) is to look at

AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData

after startup. It is a string[]



来源:https://stackoverflow.com/questions/582528/getting-the-path-of-a-clickonce-file-association

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!