How to get version of the installer-project
-
Hi, I'd like to use the version of the installer-project (set in the project properties) as a general version of the whole application (as defined in the AssemblyInfo.cs). Is there an C#-object, which is able to read the visual-studio properties, in special the version of the installer project? Thanks!
Ariadne
-
Hi, I'd like to use the version of the installer-project (set in the project properties) as a general version of the whole application (as defined in the AssemblyInfo.cs). Is there an C#-object, which is able to read the visual-studio properties, in special the version of the installer project? Thanks!
Ariadne
In vb.net
Dim strversion As String strversion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() MessageBox.Show(strversion) strversion = System.Reflection.Assembly.GetCallingAssembly().GetName().Version.ToString() MessageBox.Show(strversion)
-
In vb.net
Dim strversion As String strversion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() MessageBox.Show(strversion) strversion = System.Reflection.Assembly.GetCallingAssembly().GetName().Version.ToString() MessageBox.Show(strversion)
Thanks sathish s! Your solution shows the version of the actual running assembly. But my question is related to VS-Enviroment: I need a link to the version of the installer-project property. perhaps VS has a build-in variable [InstallerProjectVersion] or there is a way to investigate the running VS enviroment to get this version.
Ariadne
-
Hi, I'd like to use the version of the installer-project (set in the project properties) as a general version of the whole application (as defined in the AssemblyInfo.cs). Is there an C#-object, which is able to read the visual-studio properties, in special the version of the installer project? Thanks!
Ariadne