Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: String to int Pin
Michael Bookatz19-Mar-09 2:11
Michael Bookatz19-Mar-09 2:11 
GeneralRe: String to int Pin
DaveyM6919-Mar-09 2:11
professionalDaveyM6919-Mar-09 2:11 
AnswerRe: String to int Pin
DaveyM6919-Mar-09 0:18
professionalDaveyM6919-Mar-09 0:18 
GeneralRe: String to int Pin
Greg Chelstowski19-Mar-09 0:57
Greg Chelstowski19-Mar-09 0:57 
GeneralRe: String to int Pin
DaveyM6919-Mar-09 2:18
professionalDaveyM6919-Mar-09 2:18 
QuestionBuild number control Pin
12Code18-Mar-09 23:25
12Code18-Mar-09 23:25 
AnswerRe: Build number control Pin
Nagy Vilmos18-Mar-09 23:35
professionalNagy Vilmos18-Mar-09 23:35 
GeneralRe: Build number control Pin
Simon P Stevens18-Mar-09 23:48
Simon P Stevens18-Mar-09 23:48 
williamnw wrote:
[assembly:AssemblyVersion("1.2.*")]


I've tried this and I've never been able to get it to work. It always just gives me a version of "1.2.*" on the actual file.

Have you got it working williamnw? (Sorry for hijacking your thread 8kelvin)

For 8kelvin: There are two other options:

1) The AssemblyInfo[^] task can be used to auto increment the version number by modifying the assemblyinfo.cs file prior to the build being run. You just add an include statement to your project file.

2) There's a task in the MSBuild Community Tasks[^] project that can be used to generate a version number and write it into a generated assemblyinfo.cs file prior to the build running. Again, it just requires some additions to your csproj file (or msbuild script if you use it)

To be honest I have problems with both methods in my projects. We have large projects containing multiple assemblies and always end up with references screwed up because one of them is trying to reference versions prior to the number increment, or version numbers getting incremented twice or stupid things like that. This is the one area of our system I'm very unhappy with, but I can't find a decent solution.

Simon

GeneralRe: Build number control [modified] Pin
12Code19-Mar-09 0:06
12Code19-Mar-09 0:06 
GeneralRe: Build number control Pin
Simon P Stevens19-Mar-09 0:10
Simon P Stevens19-Mar-09 0:10 
GeneralRe: Build number control Pin
Nagy Vilmos19-Mar-09 0:19
professionalNagy Vilmos19-Mar-09 0:19 
QuestionAllocating opacity for a control in Win App ? Pin
Mohammad Dayyan18-Mar-09 23:17
Mohammad Dayyan18-Mar-09 23:17 
AnswerRe: Allocating opacity for a control in Win App ? Pin
musefan18-Mar-09 23:36
musefan18-Mar-09 23:36 
QuestionRectangle background color Pin
yesu prakash18-Mar-09 23:15
yesu prakash18-Mar-09 23:15 
AnswerRe: Rectangle background color Pin
musefan18-Mar-09 23:35
musefan18-Mar-09 23:35 
AnswerRe: Rectangle background color Pin
Christian Graus18-Mar-09 23:46
protectorChristian Graus18-Mar-09 23:46 
QuestionExtract emoticons from RTF Pin
CodingLover18-Mar-09 23:14
CodingLover18-Mar-09 23:14 
AnswerRe: Extract emoticons from RTF Pin
Simon P Stevens18-Mar-09 23:52
Simon P Stevens18-Mar-09 23:52 
AnswerRe: Extract emoticons from RTF Pin
Giorgi Dalakishvili19-Mar-09 0:44
mentorGiorgi Dalakishvili19-Mar-09 0:44 
QuestionRe: Extract emoticons from RTF Pin
CodingLover19-Mar-09 20:17
CodingLover19-Mar-09 20:17 
QuestionC# Windows Service and POP3 authentication Pin
ejojart18-Mar-09 23:09
ejojart18-Mar-09 23:09 
AnswerRe: C# Windows Service and POP3 authentication Pin
Rob Philpott18-Mar-09 23:46
Rob Philpott18-Mar-09 23:46 
GeneralRe: C# Windows Service and POP3 authentication Pin
ejojart18-Mar-09 23:57
ejojart18-Mar-09 23:57 
GeneralRe: C# Windows Service and POP3 authentication Pin
Rob Philpott19-Mar-09 0:05
Rob Philpott19-Mar-09 0:05 
GeneralRe: C# Windows Service and POP3 authentication Pin
Mirko198019-Mar-09 1:24
Mirko198019-Mar-09 1:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.