AssemblyInfo.cs sync with Visual Source Safe

Is there a way to have the version that is in the AssemblyInfo.css file reflect that of the Version that is given to a project in Visual Source Safe?
LVL 3
jayrodAsked:
Who is Participating?
 
gregoryyoungCommented:
0
 
jayrodAuthor Commented:
so this line
[assembly: AssemblyVersion("1.0.*")]

needs to be
[assembly: AssemblyVersion("1.0.0."$Revision: $)] ???

0
 
gregoryyoungCommented:
not quite that will return $Revision: 2$ so you would need to do some magic with it to get the version out
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
jayrodAuthor Commented:
well I'm clueless as to what type of magic I would need to start doing in order to get that to function correctly.  If ya have some vague ideas or anything I'd be appreciative
0
 
Bob LearnedCommented:
There is a note in that link that Greg gave:

Note   Keyword expansion is by default disabled for all files. See your VSS Administrator to enable keyword expansion.

Bob
0
 
Bob LearnedCommented:
Just wanted to make sure that you saw that:)

Bob
0
 
gregoryyoungCommented:
good point bob, very important foot note.
0
 
jayrodAuthor Commented:
ok.. so does the replacement come before or after compilation? cause if it's after then this won't do what I want it to.
0
 
gregoryyoungCommented:
the replacement is from source safe ... not compilation ... check in / check out is what determines VSS version numbers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.