By default, when the lightswithc program is released to the production environment, it is the title of the project named program, this is a bit difficult to accept when Chinese users or title users need to perform additional processing (such as adding the program version number. At the same time, ls does not have any related APIs for modification. How can we solve this seemingly simple problem.
1. if you do not mind the Chinese name, you can modify the application name in the project property and the title will be changed during release. However, if you are a Chinese character, the generated DLL name will also change, which is unfriendly. It may also affect the project code, such as using reflection or referencing image resources. In this case, some implicit bugs will be generated and cannot be known in time. We can only test it as a whole.
2. The above method is unacceptable for me. How can we solve this problem thoroughly. Switch to the file view, display all files, open the clientgenerated project in solution, open properties, and find outofbrowsersettings. XML, find <windowsettings Title = "finstoneteam" Top = "0" Left = "0" windowstartuplocation = "Manual"/>, change it to <windowsettings Title = "finstone Palau ver 1-by greystar" Top = "0" Left = "0" windowstartuplocation = "Manual"/>. save the file and debug it. The title of the window becomes the name you want.
Then, release the LS program to the actual environment, and the client automatically updates the program. When I open it, it seems that something is wrong. In the release mode, the program becomes the project name again. Please do not worry, we have another important task not done: Please find outofbrowsersettings. XML physical path, such as c: \ XXX \ outofbrowsersettings. XML, right-click the file property and set it to hidden (Note whether the title setting in it is what you want ). This should be simple.
Let's release it again to see what the effect will be. As you wish: