|
-
May 3rd, 2002, 10:46 AM
#1
Thread Starter
Addicted Member
Application Version
Ok, this must be a dumb question but I can't find where you set the application version on my VB.NET Project.
I have tried right clicking on my project and clicking on Properties. That brings up a window called '[My project] Property Pages" Under "Common Properties" I only have 5 Options: General, Build, Imports, Reference Path, and Designer Defaults. I read one online tutorial that showed Version on this list, but I do not see it.
What am I doing wrong?
When I call a Application.ProductVersion I get 1.0.853.13092
Whe I create a System.Version object and do a oVer.ToString I get 0.0
This VB.NET Project should be ver 4.0 as 3.0 was written in VB6
-Daryl
"Two More Rolls of Duct tape, and the world is mine!"
VB.NET Guru
-
May 3rd, 2002, 10:51 AM
#2
I believe when you create a new project in Visual Studio, there will be an AssemblyInfo.vb xml looking file. i beleive you set that stuff in there.. One of those things I can be sure on as i dont use Microsofts IDE to write .NET apps.
-
May 3rd, 2002, 11:01 AM
#3
Thread Starter
Addicted Member
That worked
Ahh.. That worked.
Now when I do Application.ProductVersion it works fine, how do I connectect the System.Version object to it? I still get version 0.0 from this:
Dim oVer As New System.Version()
'lblVer.Text = "Ver: " & Application.ProductVersion
lblVer.Text = "Ver: " & oVer.ToString
-Daryl
"Two More Rolls of Duct tape, and the world is mine!"
VB.NET Guru
-
May 3rd, 2002, 11:13 AM
#4
it looks like System.Version is for setting the application version in code
System.Version(major,minor,revision)
I think..I couldnt really find much explanation info on its usage over Application.ProductVersion
-
May 3rd, 2002, 11:25 AM
#5
Thread Starter
Addicted Member
I got it
Ok, I see now
This is how you do it:
Dim oVer As New System.Version(Application.ProductVersion)
-Daryl
"Two More Rolls of Duct tape, and the world is mine!"
VB.NET Guru
-
May 3rd, 2002, 11:27 AM
#6
oh.. ok ..coolness
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|