Solved

How can I get access to the assembly file code in my asp.net website?

Posted on 2012-03-20
3
305 Views
Last Modified: 2012-03-20
Hi,

I am working on a website that uses...

Private strVersion As String = _
     "VERSION " & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.Major & _
     "." & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.Minor & _
     "." & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.Build & _
     "." & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.Revision

to access the version info.

I need to do a release and cannot fathom how to update the version. I am aware that the version info is kept in the assembly but how do you access the assembly from visual studio?
0
Comment
Question by:jazz__man
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
Comment Utility
The version is usually stored in the AssemblyInfo.vb file, in the web project.
0
 
LVL 2

Author Comment

by:jazz__man
Comment Utility
Thats what I thought but there is not one contained in the app I have performed a search of entire solution for it but nothing was found.
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
If there isn't one, you can add one.  If there is one, and you add another, then you will get an error that there are duplicates.
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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

15 Experts available now in Live!

Get 1:1 Help Now