473,378 Members | 1,416 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Publish and specify Major, Minor Version numbers using asp.net 2.0

Using Asp.NET 2.0.
I published my web application to the server using the publish to website
feature of asp.net 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
Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.*")]
Apr 26 '06 #1
1 5541
You'll need a custom MSBuild task for a Web Deployment Project to do that.

Download the Web Deployment Project at :
http://msdn.microsoft.com/asp.net/re...p/default.aspx

Then, follow the instructions at :
http://weblogs.asp.net/bradleyb/arch...02/432150.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"theWizard1" <th********@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
Using Asp.NET 2.0.
I published my web application to the server using the publish to website
feature of asp.net 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
Numbers
// by using the '*' as shown below:

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

Apr 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alain Tesio | last post by:
Hi, I can't manage to get the major or minor device numbers with os.stat : ~ $ll /dev/xda7 /dev/xda8 brw-rw---- 1 root disk 13, 7 Nov 30 2000 /dev/xda7 brw-rw---- 1 root ...
1
by: John Doe | last post by:
Does anyone understand what a 'raw device number' is with respect os.major() and os.minor() Found in os-file-dir.html, section 6.1.4, os.major() description is: major(device) Extracts a...
2
by: kelly.pearson | last post by:
I had some access 97 reports that I used to publish to MS Word that worked before we upgraded to Access 2K and Word 2K. Although there were some minor discrepancies, I was able to tweak the access...
6
by: W1ld0ne [MCSD] | last post by:
In vb 6 objects you could build a .Version method that returned the version of your object using the App.Major & "." & app.Minor & "." & App.Revision method. How do you do this in .Net? ...
6
by: Frank V. | last post by:
Hello, I'm new to VB.net, moving from VB6 to VB.net. My question is "In VB.net what is the equivalent of the App.major (and others) VB6 property. I, like a lot of people I imaging, display the...
7
by: Mike L | last post by:
I want frmMain.text to show the current publish version. What is the code to get the current publish version? For example. frmMain.text = "My Application Version: " & project.publish.version ...
4
by: Mike L | last post by:
Error occurs on "System.Deployment.Application.ApplicationDeployment.CurrentDeployment" ** Here is my code private void frmMain_Load(object sender, System.EventArgs e) {...
2
by: Birky | last post by:
Can someone point me in the right direction on how to use Version Numbers within Access? I have a database were its primary goal is to track the versions of several projects. Since the version...
4
by: Pieter | last post by:
Hi, We're using ClickOnce alreaddy more than a year for a given applicaiton, doing more than 50 publishes without any problem. Yesterday we made a minor change to one of our components (let's...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.