Version, copyright info?

M

Malakie

Hi all:

Being that I am trying out VB.net for the first time finally, I am finding
much has changed. But what should be one of the easiest things to do is
somehow eluding me! Setting your project information such as copyright,
trademark and version numbers is simple in VB6. Right click on the project
and use the properties. But how do you do it in VS.Net 2003????? Right
clicking and selecting properties gives me NO such options for setting that
information nor does the tools menu|options selection. I have looked
through the help system, clicked on everything I can think of or see and for
the life of me I cannot find any place to set my copyright, trademark and
version information for a project.

What obvious thing am I missing?
 
C

Cor Ligthert

Malakie,

Did you look at the AssemblyInfo.vb class which is created with every
project and than to the help about that.

(There are more ways to solve your question)

I hope this helps?

Cor
 
M

Malakie

Hi:

Yes but nothing there that allows me to set copyright, trademark and project
version information.
 
C

Cor Ligthert

Yes but nothing there that allows me to set copyright, trademark and project
version information.

You do not have this in it?

<Assembly: AssemblyCompany("MyCompany")>
<Assembly: AssemblyProduct("MyAssemblyInfo")>
<Assembly: AssemblyCopyright("MyCopyRight")>

By the way this is for the EXE not for the MSI.

Cor
 
M

Malakie

Hi:

Ahh ok I see what you are talking about now... and I thought .Net was
supposed to make like easier!? This means I have to manually update the
version of my application now correct? I wonder why they did not simply
make it part of the projects properties as in VS6 including the option to
automatically increment the version.
 
H

Herfried K. Wagner [MVP]

* "Malakie said:
Being that I am trying out VB.net for the first time finally, I am finding
much has changed. But what should be one of the easiest things to do is
somehow eluding me! Setting your project information such as copyright,
trademark and version numbers is simple in VB6. Right click on the project
and use the properties. But how do you do it in VS.Net 2003????? Right
clicking and selecting properties gives me NO such options for setting that
information nor does the tools menu|options selection. I have looked
through the help system, clicked on everything I can think of or see and for
the life of me I cannot find any place to set my copyright, trademark and
version information for a project.

Take a look at your project's "AssemblyInfo.vb" file. You will find
something like this there:

\\\
<Assembly: AssemblyTitle("")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("")>
<Assembly: AssemblyCopyright("")>
<Assembly: AssemblyTrademark("")>
///

Replace the '""' with your assembly information.

In VB 2005, there will be a dialog for setting these attributes.
 
J

Jay B. Harlow [MVP - Outlook]

Malakie,
The AssemblyVersion will automatically increment when you include * in the
string!

In fact the default is to automatically increment the assembly version! Via
the following Attribute:

<Assembly: AssemblyVersion("1.0.*")>

In addition to the AssemblyVersion which is include by default you can set
the Product Version & File Version with:

<Assembly: AssemblyInformationalVersion("1.0")> ' Product version
<Assembly: AssemblyFileVersion("1.0.0.0")> ' File version

If you exclude the AssemblyInformationalVersion & AssemblyFileVersion they
will default to AssemblyVersion. I normally add AssemblyInformationalVersion
but not AssemblyFileVersion.

For details see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/assenamesp.asp


The following add-in will allow the AssemblyFileVersion to automatically
increment.

http://home.cfl.rr.com/njfiorello/autofile/

I don't see auto incrementing the Product version really makes sense...

Hope this helps
Jay
 
M

Malakie

Hi:

I was just playing around in 2005 beta and noticed that. It is amazing they
left it out of 2002-2003 especially for those of us that got used to it is
VS6 and earlier. Not to mention I could not find hide nor hair anywhere in
the documentation about this and finally had to ask here.
 

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