|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
Problem compiling Pocket PC software: Visual Build 6, VS.Net 2005
When I compile a Pocket PC application in Visual Build 6.0 (Visual Studio 2005) I get the following error:
C:\Build Process\Checkout\Mobile\Lima\trunk\AssemblyInfo.vb (29) : error BC30002: Type 'AssemblyFileVersionAttribute' is not defined. Relevant lines that created in AssemblyInfo.vb: <Assembly: AssemblyVersion("1.00.1235")> <Assembly: AssemblyInformationalVersionAttribute("1.00.1235") > <Assembly: AssemblyFileVersionAttribute("1.00.1235")> Visual Build project step XML: <step action='Make VS.NET'> <AssemblyVer type='11'>-1</AssemblyVer> <Attr type='11'>-1</Attr> <FileVer type='11'>0</FileVer> <Filename>C:\Build Process\Checkout\Mobile\Lima\trunk\Lima.sln</Filename> <Location>devenv</Location> <LogLevel type='3'>0</LogLevel> <ParseOutput type='11'>-1</ParseOutput> <ProdVer type='11'>-1</ProdVer> <ShowCmd type='11'>-1</ShowCmd> <Version>%VERSIONID%%REVISIONID%</Version> <VersionSel type='3'>2</VersionSel> <description>Execute devenv.com to compile Lima.sln </description> <indent type='3'>2</indent> <name>Compile Lima</name> </step> If I do not select the "Update the File Version" check box in the Versions tab of the Make VS.Net project step, I do not get the error. |
#2
|
|||
|
|||
Only the Assembly and Product versions apply for Smart Device (Compact Framework) projects; the File version option should be unchecked for these project types.
http://www.visualbuild.com/Manual/vsnetversionstab.htm |
#3
|
|||
|
|||
Assembly and Product Version update
I had this problem:
>> C:\Build Process\Checkout\Mobile\Lima\trunk\AssemblyInfo.vb (29) : error BC30002: Type 'AssemblyFileVersionAttribute' is not defined. I've solved it with this suggestion: >>Only the Assembly and Product versions apply for Smart Device (Compact Framework) projects; the File version option should be unchecked for these project types. Despite that Update File Version is disabled, DLL and EXE files generated after the build for both Win32 and Pocket PC 2003 (ARMV4) target all have correct Assembly and Product version updated. But, Windows Mobile 5.0 Pocket PC SDK (ARMV4I) target build didn't. In fact, all Version information in the Properties tab were not updated at all. Our project is VC++ based using VS2005. Any suggestion would be appreciated. Last edited by gchang; 12-07-2006 at 03:57 PM. |
#4
|
|||
|
|||
Please ZIP and send or post:
1) The info from Help | About | Install Info 2) The .bld file 3) A build log file 4) The .sln file, project, and .rc files (no source code files) Thanks. |
#5
|
|||
|
|||
Files with an RC file get updated correctly.
However, files without an RC, but with a global RC file specified in the project, did not get updated. Does every source code file need its own RC file? Last edited by gchang; 12-24-2006 at 11:50 AM. |
#6
|
|||
|
|||
Correct -- each project would need a .rc file with VERSIONINFO resource.
|
|
|