Publish and specify Major, Minor Version numbers using 2.0



Using Asp.NET 2.0.
I published my web application to the server using the publish to website
feature of 2.0. In VS.Net 2005 IDE, on solution explorer, at top
level just below solution, I just right-clicked, and selected publish. I
gave it the target server location (just mapped a drive from my machine to
the server), and checked the MS Build Option - Allow this precompiled site to
be updateable. Everything is working fine.

Question: How can I specify the Major Version, Minor Version, etc. numbers?

In VS 2003 we used the AssemblyInfo file as shown below. But, I did not
have an AssemblyInfo file in VS 2005.

/ Version information for an assembly consists of the following four values:
// Major Version
// Minor Version
// Build Number
// Revision
// You can specify all the values or you can default the Revision and Build
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.*")]


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