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?
The official .NET way (without registries) is to look
AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData p>
after launch. This is the string []
Source: https://habr.com/ru/post/1703753/More articles:Developers who have experience with .NET 3.0 or higher, what features would you recommend first? - .netnunit setup / teardown not working? - c #How can I ignore DTD validation, but retain Doctype when writing an XML file? - javaHow long should the thread sleep when the event pattern is not applied? - multithreadingMultiple WHEN inside without CASE expressions in SQL? - sqlRender multiline text with Rails? - ruby โโ| fooobar.comThe SQL Server procedure returns multiple tables. Insert results into tables. - sqlSetting up Django with mod_python, Apache on SuSE with an alias - djangoHow can I poll web requests without blocking? - perlLoading the best way to notify a JS script - javascriptAll Articles