Solved

AssemblyInfo.cs sync with Visual Source Safe

Posted on 2004-08-06
9
374 Views
Last Modified: 2012-06-21
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
Comment
Question by:jayrod
  • 4
  • 3
  • 2
9 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 11737275
0
 
LVL 3

Author Comment

by:jayrod
ID: 11737325
so this line
[assembly: AssemblyVersion("1.0.*")]

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

0
 
LVL 37

Assisted Solution

by:gregoryyoung
gregoryyoung earned 500 total points
ID: 11737359
not quite that will return $Revision: 2$ so you would need to do some magic with it to get the version out
0
 
LVL 3

Author Comment

by:jayrod
ID: 11738157
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 96

Expert Comment

by:Bob Learned
ID: 11738644
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
 
LVL 96

Expert Comment

by:Bob Learned
ID: 11738646
Just wanted to make sure that you saw that:)

Bob
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11739927
good point bob, very important foot note.
0
 
LVL 3

Author Comment

by:jayrod
ID: 11740944
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
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11740951
the replacement is from source safe ... not compilation ... check in / check out is what determines VSS version numbers
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now