简体   繁体   中英

How to publish two different shortcuts for a single windows forms application?

I want to create two shortcuts on Desktop after publishing the app, both of them should pass different args to the Main method of the Program class:

在此处输入图像描述

How can I achieve this? Or is it even possible?

Do you already use any sort of installer for your application? One example how you could do this would be to use an installer like InnoSetup for creating the desktop icons (example: How to create a desktop icon with Inno Setup ). Of course you can also do this programmatically but without knowing how you publish your app I cannot give you any specific answer for your way of publishing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM