Getting the path to the ClickOnce file association

I use ClickOnce and I struggle with file associations. I can create an association. Double-clicking the linked file even launches the application.

... But...

I do not know how to access the file path by clicking to start the application.

Has anyone come across this before?

+3
source share
1 answer

The official .NET way (without registries) is to look

AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData p>

after launch. This is the string []

+4
source

Source: https://habr.com/ru/post/1703753/


All Articles