How does one pass command line argument to a ClickOnce application?

前端 未结 4 1328
南方客
南方客 2020-12-08 21:15

I have a Clickonce application that is launched from the start menu (local). I would like to be able to specify a parameter so that the application can load certain data. Th

4条回答
  •  执笔经年
    2020-12-08 21:44

    Perhaps you could pass a parameter on the URL the first time, and have the app take notice of that, and write the parameters to a config file, or environment variables or somesuch.

    On subsequent runs, load from the config file

提交回复
热议问题