Solved

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

Posted on 2012-03-20
3
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 96

Accepted Solution

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

Author Comment

by:jazz__man
ID: 37742127
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
ID: 37742154
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

763 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