Changing the Version number

G

Greg Smith

I would like to change the version number that you get as the first part
('1.0.') of string that is returned by "Application.ProductVersion".



Where do I change this?





Any help is greatly appreciated.
 
E

escristian

If you want to set the product version add this key to your
AssemblyInfo.cs file.

[assembly: AssemblyInformationalVersionAttribute("1.1.0.0")]

Hope this helps.
 
N

Nicholas Paldino [.NET/C# MVP]

Greg,

All you have to do is change the declaration of the AssemblyVersion
attribute in your code. Look for a file called "Assembly.cs" in your
project, or, set it on the properties page in your project properties.

Hope this helps.
 
V

Vadym Stetsyak

Hello, Greg!

If you have file AssemblyIngfo.cs in your project then you can change
[assembly: AssemblyVersion("1.1.0.0")] to get values you need.

If you have no AssemblyInfo.cs class then you can create code file in your project and in that file
type [assembly: AssemblyVersion("1.1.0.0")]. Doing this will apply assembly attribute with version info.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top