Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • Last Modified:

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?
0
jayrod
Asked:
jayrod
  • 4
  • 3
  • 2
2 Solutions
 
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now