Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在使用 ClickOnce,但我正在为文件关联而苦苦挣扎。我可以建立协会。双击关联文件甚至可以启动应用程序。
...然而...
我不知道如何访问单击以启动应用程序的文件的路径。
有没有人遇到过这个?
官方的 .NET 方式(没有注册表)是看
AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData
启动后。它是一个字符串[]