DevExpress re-compilation replace strong naming change source code, devexpress source code

Source: Internet
Author: User

DevExpress re-compilation replace strong naming change source code, devexpress source code

Taking DevExpress 11.1.8 as an example, the following conditions must be met:

1. You must have all source code SourceCode of the corresponding DXperience version. Copy all source code to the X: \ Program Files \ DevExpress XXX \ Components \ Sources directory. The default location of the target directory is C: \ Program Files \ DevExpress 20XX \ Components \ Sources (where X. X is the version number that should be replaced, which is not repeated below ).

2. A file with a strong name is required. This file can be generated by yourself or by someone agreed in the team project. To create this file, you must run the following command to create your own key: sn-k StrongKey. snk and copy the newly generated strong naming key StrongKey. snk file to/Devexpress under the Sources directory. key/directory. The sn.exe tool is located in the/Program Files/Microsoft Visual Studio 8/SDK/v2.0/Bin directory. Of course, if it is agreed that someone will directly copy the file to/Devexpress. Key. PS. This file also needs to be used after it has a corresponding PublicKeyToken.

3. decompress the compilation script. Decompress the compiled script package of the downloaded version, and copy all the files to the Sources subdirectory of the DXperience installation directory.

Start processing

========================================================== ========================================================== ====================
If you have installed other DevExpress versions before, you can skip this step to clear the assembly.
Run C: \ Program Files \ DevExpress 2011.1 \ Components \ Sources \ clear. bat
Note: If the "assembly lock" prompt appears during this step, close the running program, restart the IIS Admin Service, and then execute clear. bat once.

========================================================== ========================================================== ====================

Run C: \ Program Files \ DevExpress 2011.1 \ Components \ Sources \ buildall. cmd
After the execution is completed, two files are generated.
C: \ Program Files \ DevExpress 2011.1 \ Components \ Sources \ PublicKeyToken.txt -- Public Key File
C: \ Program Files \ DevExpress 2011.1 \ Components \ Sources \ DevExpress. Key \ StrongKey. snk -- Private Key File

========================================================== ========================================================== ====================

Open publickeytoken.txt and copy the string of 16 characters including aea63221faec5671.

Run the following command on the command line to replace the public key:
"% ProgramFiles % \ DevExpress 2011.1 \ Components \ Tools \ DXperience \ ProjectConverter-console.exe"/r/k: <change to your public key> "<source decompressed directory>"
Here I am.
"% ProgramFiles % \ DevExpress 2011.1 \ Components \ Tools \ DXperience \ ProjectConverter-console.exe"/r/k: 233e5082d2bfa4a0 "% ProgramFiles % \ DevExpress 2011.1 \ Components \ Sources"
So far, the control has been re-compiled. However, the Demo cannot run. To view the Demo, use the public key to re-compile the Demo.

After the source file is compiled

Start → program → Developer Express v2011 vol 1 → Components → Tools → ToolboxCreator

Recreate the IDE Toolbar

Update the public key of a previous project
The private key and public key of the re-compiled DevExpess control have been changed. If the DevExpess control has been used before compilation, it cannot be used after compilation.
We can use the DevExpress upgrade tool to upgrade the project. The steps are as follows:
Start> program> Developer Express v2011 vol 1> Components> Tools> ProjectConverter

After Project Convert (11.1.6.0) is enabled, you can upgrade by Project folder or by Folder list)
Select show advanced option and enter it in the Tom public key token column.
C: \ Program Files \ DevExpress 2011.1 \ Components \ Sources \ PublicKeyToken.txtThe public key value in the file is 233e5082d2bfa4a0.
Select Upldate for Hint path behavior, and click the Upgrade button in the lower right corner. Wait until the program replaces the public key.

Download the compilation script:

Http://www.devexpress.com/Support/Center/KB/p/A609.aspx

Related Article

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.