I used ClickOnce for sometime. It works perfectly. However, i am now having problem when i want to publish it to multiple computers from 1 same source.
The connection string which i wrote at the App.COnfig is pointing to the specific computer name. Everytime when i publish, that connectionstring will be published as well. Now problem comes when i want publish to multiple computers. It will definitely trigger error as they are not sharing the same Computer name in the connectionstring
Could you advice?
-------EDIT-----------
Hi i read some post and it refer me to use mageui.exe. Does that help in solving my problem as this problem still开发者_C百科 unsolved.
Use a user-setting instead (via a .setings file). When your app loads, check the setting; if it is missing/blank display a dialog to enter the server name (etc), and use SqlConnectionStringBuilder to form that into a connection-string. Now store that as the setting and save (it should now reappear next time they load).
You might also want to make that available via an options menu somewhere.
加载中,请稍侯......
精彩评论