Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-04-2007, 01:13 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
Set text file\product version for a VS.NET project

I have a 'Make VS.NET' step that is compiling a C# project,checkbox 'set proj version to a specific value' is ticked,all the 3 checkboxes with set version are ticked as well(file\assembly\product version).

I want to set the project version to a specific value but to have different assembly version (only numeric like '1.2.3.4') than file version (should be like '1.2.3.4 Release1') and product version (should be like '1.2 Release1').
As first attempt I wanted to set everything to '1.2.3.4 Release1' but the project compilation fails:

AssemblyInfo.cs(29,12): error CS0647: Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '1.2.3.4 Release1' is invalid'

So question 1 is -how can I set version using chars as well,not only numbers?
And 2-how can I set different file version than assembly and product version?
Thanks a lot for any help!
Reply With Quote
  #2  
Old 06-04-2007, 01:41 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Re: Set text file\product version for a VS.NET project

Quote:
Originally posted by teognost
So question 1 is -how can I set version using chars as well,not only numbers?
VS.NET requires the version values to be in the form 9.9.9.9.

Quote:
And 2-how can I set different file version than assembly and product version?
http://www.kinook.com/Forum/showthread.php?threadid=371
Reply With Quote
  #3  
Old 06-05-2007, 04:27 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
thanks for answers.
regarding 1->right now I am replacing a NANT build with my VisualBuild system.
Assemblies produced by the NANT build had the file\product version with text (1.2.3.4 Release1).I am not sure how,I will check it,maybe some special steps were performed after the compilation.
Idea is somehow this was possible,I need to figure out how.
Reply With Quote
  #4  
Old 06-05-2007, 06:47 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
The error is reported by the C# compiler, which I would imagine NANT also uses. I'm not aware of any flags that would cause it to accept non-standard version strings.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 12:52 PM.


Copyright © 1999-2023 Kinook Software, Inc.