473,770 Members | 3,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5560
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********@dis cussions.micros oft.com> wrote in message
news:1D******** *************** ***********@mic rosoft.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
3847
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 disk 13, 8 Nov 30 2000 /dev/xda8 ~ $python Python 2.2.2 (#4, Oct 15 2002, 04:21:28) on linux2
1
2509
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 device major number from a raw device number. New in version 2.3. The problem is, after searching I can only find two references to 'raw
2
4399
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 reports and fix those problems. After the upgrade to Office 2K, when I publish the report to MS Word a ..rtf document is created instead of a .doc document and it has many problems. i.e., lines don't show up, words are missing, sentences are...
6
13646
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? Thanks David
6
2948
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 current version number on my about form. Though I've used some code, I can't get a version number that seems to update properly. I've read some other posts that have mentioned 2 main things that I've learned. 1. <Assembly:...
7
45940
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 But I don't know how to call the project.publish.version numbers.
4
6371
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) { System.Deployment.Application.ApplicationDeployment ad = System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
2
4317
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 numbers are formatted as Major.Minor.Build.Plateform (1.01.01.01) I am unable to find a way to sort and or automatically update the version to the next appropriate version number. I was hoping someone could point me to some literature on best practices on...
4
2202
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 say with the name MyAssembly), and incremented it's version (AssemblyVersion: from 0.1.7.0 to 0.1.7.1). We did the Publish with ClickOnce, but when the users know want to run the application they get this error: "Unable to install or run the...
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10057
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10002
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9869
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3575
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.