HLRosenberger
asked on
version in VS/ .NET Framework
Is there build in version stuff in VS and/or .NET Framework? I think there are Framework methods that can be called to get version info. Where does it get this info? web.config?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
But how/where is the version set?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok. I have this in assembly.vb.
<Assembly: AssemblyVersion("1.0.0.0") >
<Assembly: AssemblyFileVersion("1.0.0 .0")>
However, when I run this code, I get a version of 0.0.0.0. See image. My project is a WEB site. Does this matter?
Dim assembly As Reflection.Assembly = Reflection.Assembly.GetExe cutingAsse mbly()
Dim fvi As FileVersionInfo = FileVersionInfo.GetVersion Info(assem bly.Locati on)
Dim version As String = fvi.FileVersion
version.png
<Assembly: AssemblyVersion("1.0.0.0")
<Assembly: AssemblyFileVersion("1.0.0
However, when I run this code, I get a version of 0.0.0.0. See image. My project is a WEB site. Does this matter?
Dim assembly As Reflection.Assembly = Reflection.Assembly.GetExe
Dim fvi As FileVersionInfo = FileVersionInfo.GetVersion
Dim version As String = fvi.FileVersion
version.png
ASKER
kaufmed - This is a WEB site project. I do not see an applications tab under properties. For a DLL project or console app, I do see the application tab.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks to all!
ASKER