費了老大的勁,終于七拼八揍的,把Devexpress編譯所需的東西全部下載到手
1、 DXperience Universal-10.1.6安裝包,這個是190多M的
下載地址:http://downloads.devexpress.com/63be3ab2-a882-4af8-bf95-6ee2ba8af6bb/64.237.51.130/DXperience/2010.1/6/DXperienceUniversal-10.1.6.exe
這個是官方的鏈接如果失效的話,可以按文件名去別的地方下載。
2、源代碼(最重要的東東了,我為找這個東西還真是翻山越嶺,跋山涉水,辛苦啊。)
http://rapidshare.com/files/416091676/DX2010.1.6.Sources.rar.html
解壓密碼: allcredits_JFX
http://rapidshare.com/files/416119124/DXXAF2010.1.6.Sources.rar.html
解壓密碼: allcredits_JFX
我是搞Winform的,只下載了第一個就編譯成功了(70左右M)。我用DEV時間還不長,不知道第二個包是做什么用的。
推薦使用一個叫JDownload的下載工具來下載,會比較快。
3、編譯腳本,這東東,我真在網(wǎng)上找了大半天,找到最后我這個爛英語估計也能過四級了(E文資料看得太多了)
最終我是用10.1.4版本的編譯腳本來編譯的,我估計10.1版本的編譯包應(yīng)該都是通用的吧。猜的哦
下載地址:http://files.cnblogs.com/shaoming01/Devexpress_10.1.4(10.1.5%2c10.1.6)_%e7%bc%96%e8%af%91%e8%84%9a%e6%9c%ac_Build_Scripts.rar
以上就是要準備的材料,都準備好了,那就按照下面的步驟一步一步來吧。
How to Build Form Source Code?
1. Install the trial (download from the official website) Note: Install ALL parts of the setup, even if you do not need it
2. Now extract the sources (provided by our good friends here, bless them) to the {Install folder}\Components\Sources folder
(By sources I mean all the folders starting with DevExpress.{something}
3. Extract the build scripts (all the *.bat, *.cmd and the PatchInternalVisibleTo stuff) to the {Install folder}\Components\Sources folder
4. Now open defines.bat in some text editor like Notepad
5. Set the version of VS you are using first (in the vsver=vs2008 line)
6. Also, I like to set the configuration variable to Release instead of Debug
7. Path editing: The basic idea here is to verify that all paths mentioned in the file are valid for your system. eg. if you have Windows 32bit, the Programfiles32bit variable should point to c:\program files
8. Check all paths and make sure they are valid for your system. I found a few differences on mine :
- set sn="%ProgramFiles64bit%\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe"
- should be
- set sn="%ProgramFiles64bit%\Microsoft SDKs\Windows\v7.0A\Bin\sn.exe"
and in vs2010 section
- set gacutil="%ProgramFiles32bit%\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64\gacutil.exe"
- should be
- set gacutil="%ProgramFiles32bit%\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\gacutil.exe"
9. The bottom of the file is divided into different sections for each version of VS. You only need to check the paths for the version of VS you have
10. If you have trouble finding the correct path for any variable, just search your c: drive for the file the path is referring.
11. Check your changes, save and close the file
12. Now open a command prompt and navigate to the {Install folder}\Components\Sources folder
13. Run clear.bat
14. Open the c:\windows\assembly folder
15. If you find any assemblies starting with DevExpress, remove them. If you have installed the IDE tools, there will be assemblies like DevExpress.DXCore, DevExpress.Refactor, DevExpress.CodeRush - do NOT remove them. I usually install the IDE tools after finishing with the components to avoid any confusion.
16. Open the {Install folder}\Components\Sources\DevExpress.DLL folder and delete any remaining files from it.
17. Ready to compile! In the command prompt window (the one used for running clear.bat) run buildall.cmd (and pray )
18. In the output, all yellow msgs are warnings and can be ignored. The red ones are errors. You might get a few of these (3/4) if you have not installed ASP.NET. Other than that, there should NOT be any errors.
If you get a lot of errors, something is probably wrong with the edits you made in the defines.bat. Stop the build, and recheck.
19. After successfully completing the build, run the ToolBox creator from the DevExpress group in the Start menu. Do NOT run ToolBoxCreator.exe directly.
20. In {Install folder}\Components\Sources folder there will be a file called PublicKeyToken.txt, open it in a text editor and copy the key to the clipboard.
21. Run the ProjectConverter tool from the Start menu, click the Show advanced options check box, past the public key in the Custom public key box
22. Point the Project folder to you solutions folder and convert all your projects.
23. Good to go!
上面的E文比較簡單,翻譯沒什么意思,還是原汁原味吧。 步驟雖然看起來比較多,不過操作比較簡單
反正我也是按照這個來的,最終是成功了,相信你也行的。