Title processing in lightswitch OOB release Mode

Source: Internet
Author: User

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:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.