Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-19-2004, 10:37 AM
tfaust tfaust is offline
Registered User
 
Join Date: 07-07-2004
Posts: 3
Increment version for smart device projects fails

Hi,
I have a solution with mixed .NET and CF.NET projects. On the build step I have the option to set the version number to a specific version befiore building. It will fail if I have either the file or product version checked, having the assembly version checked only works out as it just updates the 'AssemblyVersion'.

The root of the problem is that Visual Build is adding the 'AssemblyFileVersionAttribute' in the AssemblyInfo.cs files, but this class is not supported in the compact framework. Is there some way to make it not set this for smart device projects (*.csdproj) without having seperate solutions?

Thanks in advance!
Reply With Quote
  #2  
Old 07-19-2004, 11:20 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Not currently. You could use the method mentioned in the help to exclude some projects from versioning (rename that project's AssemblyInfo file [i.e., AssemblyInfox.cs]). Then you would need to manually set the assembly version attribute for the excluded projects, which could be done via a Replace in File action. Or use a separate solution for the CF projects.

Another option is to not update/increment the File version attribute for the entire solution (and remove any existing file version attributes from existing projects), since VS.NET will set the file and/or product version values in the executable to the assembly version if they are not specified.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:14 PM.


Copyright © 1999-2023 Kinook Software, Inc.