如何大量變更Project version |
尚未結案
|
alex0628
一般會員 發表:13 回覆:24 積分:7 註冊:2002-04-15 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
|
alex0628
一般會員 發表:13 回覆:24 積分:7 註冊:2002-04-15 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
|
alex0628
一般會員 發表:13 回覆:24 積分:7 註冊:2002-04-15 發送簡訊給我 |
引言: Did you do a bulid instead of compile project?我試過了, 我重寫一次我的步驟, 請您看看對不對 1. Delete *.res 2. Edit *.dof 's FileVersion 3. Open Delphi 4. Open Project (Rebuild .res file) 5. Build Project 6. Check file version Rebuild的結果是 AP 的 ICON 不見了, 可是版本資訊也沒更新. |
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
|
alex0628
一般會員 發表:13 回覆:24 積分:7 註冊:2002-04-15 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
|
speedup
資深會員 發表:19 回覆:259 積分:280 註冊:2003-07-04 發送簡訊給我 |
引言:try to delete *.dcu 混心雜欲 棄修身~唉引言: Did you do a bulid instead of compile project?我試過了, 我重寫一次我的步驟, 請您看看對不對 1. Delete *.res 2. Edit *.dof 's FileVersion 3. Open Delphi 4. Open Project (Rebuild .res file) 5. Build Project 6. Check file version Rebuild的結果是 AP 的 ICON 不見了, 可是版本資訊也沒更新.
------
唉~ |
alex0628
一般會員 發表:13 回覆:24 積分:7 註冊:2002-04-15 發送簡訊給我 |
|
Chance36
版主 發表:31 回覆:1033 積分:792 註冊:2002-12-31 發送簡訊給我 |
alex0628 你好 1.針對每個dpr開啟[Projects]->[Options]->切到[Version Info] 將[Include Version Information]及[auot-IncrementBuild Number]打勾
2.開啟project Group 然後用Build All Projects 不是用Compile All projects
3.或個別的dpr則用Build Project 發表人 - chance36 於 2004/06/14 22:37:24
|
alex0628
一般會員 發表:13 回覆:24 積分:7 註冊:2002-04-15 發送簡訊給我 |
引言: 1.針對每個dpr開啟[Projects]->[Options]->切到[Version Info] 將[Include Version Information]及[auot-IncrementBuild Number]打勾 2.開啟project Group 然後用Build All Projects 不是用Compile All projects 3.或個別的dpr則用Build Project 發表人 - chance36 於 2004/06/14 22:37:24我現在的Version Information是用日期來做Build Number, 因為常常需要Build Project, 所以每一次一個一個開dpr來改Version都需要花很多的時間, 所以想說用UltraEdit直接Replace dof 檔裡面的Version, 現在已經都可以Work了, 但是存在的一個問題是專案的ICON會變回Delphi的預設ICON, 所以現在還不知道怎麼解決. |
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
Then I would suggest you set version info the hard way... 1) do NOT include version info in your project
2) create a TEXT resource script (e.g. ver.rc)
3) compile ver.rc using brcc32 into ver.res
4) link ver.res to your project using {$R ver.res} Here is a sample .rc created using Borland Resource Workshop (you can find it on Delphi 7 CD):
/**************************************************************************** ver.rc produced by Borland Resource Workshop *****************************************************************************/ #define VERSIONINFO_1 1 1 VERSIONINFO FILEVERSION 1, 0, 0, 0 PRODUCTVERSION 1, 0, 0, 0 FILEOS VOS_DOS_WINDOWS16 FILETYPE VFT_APP { BLOCK "StringFileInfo" { BLOCK "040904E4" { VALUE "CompanyName", "My Company\000\000" VALUE "FileDescription", "Description from .def file here\000" VALUE "FileVersion", "1.00\000\000" VALUE "InternalName", "Application name\000" VALUE "LegalCopyright", "Copyright © My Company 1993\000\000" VALUE "OriginalFilename", ".exe file name here\000" } } BLOCK "VarFileInfo" { VALUE "Translation", 0x409, 1252 } } |
alex0628
一般會員 發表:13 回覆:24 積分:7 註冊:2002-04-15 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |