PDA

View Full Version : Problem compiling Pocket PC software: Visual Build 6, VS.Net 2005


WislegC
10-19-2006, 02:13 PM
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.

kinook
10-19-2006, 02:55 PM
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

gchang
12-07-2006, 03:15 PM
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.

kinook
12-08-2006, 11:35 AM
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.

gchang
12-24-2006, 11:38 AM
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?

kinook
12-27-2006, 03:24 PM
Correct -- each project would need a .rc file with VERSIONINFO resource.