473,386 Members | 1,741 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,386 software developers and data experts.

Partial Update of VS.NET Project?

Hi,

I've been using Visual Studio (not .Net) for many years (6+). I'm just now
switching to VS.NET 2003. I am building my first project. In the past, I
tend to work on my local machine (having local versions of IIS and SQL
Server). Then after I'm ready to move the site to the web, I will initially
create a new project in the same solution that contains the web server on
the Internet. I start by doing a full copy, and then as I make updates, I
can pick and choose the files I put. If I only update a single file, then I
just copy/paste that one file.

I don't see any way of doing something like that with .Net. When I try to
create a project on the web server with the same name and in the same
project, I get an error (can't have 2 projects named the same in the same
solution - namespace conflict). However, if I name it something different,
and then move files over, it tends to not work because the ASPX files are
looking for code based on the original project's namespace.

The only way I've seen to update the project on the web from VS is to use
the copy project button. However, there isn't an incremental copy - it
sends all the files.

Am I missing something here? I know I can FTP the files, but that would
require going outside of Visual Studio to do it.

Any suggestions would be appreciated!

Thanks.

-- Kent Iler
----------------------------------------------------------------------
ke**@iler.NOSPAM.com
Please CC: all replies via e-mail
Remove .NOSPAM from e-mail address
Jul 21 '05 #1
3 1882
I am not sure I follow all you say; but I have successfully been working the
way I believe you describe here.

I work at my local machine, and deploy by copy to my customers; I even have
two parallell versions of the same project, the "release"-version and a test
version.

The way I do it:
a) the server must (of course) have the correct framework installed
b) I create a folder on the server, typically a subdirectory of the WWWRoot
(not necessarily linked to the name of the project)
c) Create an application for the given subdirectory (using IIS admin-tools,
find the directory, click properties, click "create application")
d) Copy the neccessary files from your development directories to the
application directory on the server. Normally global.asax, web.config,
bin\<project>.dll and many aspx-files. I you change one aspx-file, including
events and source code, you have to deploy both the aspx and the
bin\<project>.dll files.

- no install required.

Regards,

Harald Bjorøy

"Kent P. Iler" <ke**@iler.NOSPAM.com> wrote in message
news:A89bb.535824$uu5.89430@sccrnsc04...
Hi,

I've been using Visual Studio (not .Net) for many years (6+). I'm just now switching to VS.NET 2003. I am building my first project. In the past, I
tend to work on my local machine (having local versions of IIS and SQL
Server). Then after I'm ready to move the site to the web, I will initially create a new project in the same solution that contains the web server on
the Internet. I start by doing a full copy, and then as I make updates, I
can pick and choose the files I put. If I only update a single file, then I just copy/paste that one file.

I don't see any way of doing something like that with .Net. When I try to
create a project on the web server with the same name and in the same
project, I get an error (can't have 2 projects named the same in the same
solution - namespace conflict). However, if I name it something different, and then move files over, it tends to not work because the ASPX files are
looking for code based on the original project's namespace.

The only way I've seen to update the project on the web from VS is to use
the copy project button. However, there isn't an incremental copy - it
sends all the files.

Am I missing something here? I know I can FTP the files, but that would
require going outside of Visual Studio to do it.

Any suggestions would be appreciated!

Thanks.

-- Kent Iler
----------------------------------------------------------------------
ke**@iler.NOSPAM.com
Please CC: all replies via e-mail
Remove .NOSPAM from e-mail address

Jul 21 '05 #2
But how do you copy the single file after you have made a change? In
VS6, you could have a project setup for both local and remote
websites, and just copy/paste. You also had the option for coping the
website, but choosing only files that have changed vs. pushing the
entire site out.

In order to move a single file in VS.NET 2003, I'm thinking I would
need to FTP it, which means using another tool NOT integrated with VS.

Is this correct?

--Kent Iler

"Harald Bjorøy" <ha***********@ulriken-consulting.com> wrote in message news:<#z*************@tk2msftngp13.phx.gbl>...
I am not sure I follow all you say; but I have successfully been working the
way I believe you describe here.

I work at my local machine, and deploy by copy to my customers; I even have
two parallell versions of the same project, the "release"-version and a test
version.

The way I do it:
a) the server must (of course) have the correct framework installed
b) I create a folder on the server, typically a subdirectory of the WWWRoot
(not necessarily linked to the name of the project)
c) Create an application for the given subdirectory (using IIS admin-tools,
find the directory, click properties, click "create application")
d) Copy the neccessary files from your development directories to the
application directory on the server. Normally global.asax, web.config,
bin\<project>.dll and many aspx-files. I you change one aspx-file, including
events and source code, you have to deploy both the aspx and the
bin\<project>.dll files.

- no install required.

Regards,

Harald Bjorøy

"Kent P. Iler" <ke**@iler.NOSPAM.com> wrote in message
news:A89bb.535824$uu5.89430@sccrnsc04...
Hi,

I've been using Visual Studio (not .Net) for many years (6+). I'm just

now
switching to VS.NET 2003. I am building my first project. In the past, I
tend to work on my local machine (having local versions of IIS and SQL
Server). Then after I'm ready to move the site to the web, I will

initially
create a new project in the same solution that contains the web server on
the Internet. I start by doing a full copy, and then as I make updates, I
can pick and choose the files I put. If I only update a single file, then

I
just copy/paste that one file.

I don't see any way of doing something like that with .Net. When I try to
create a project on the web server with the same name and in the same
project, I get an error (can't have 2 projects named the same in the same
solution - namespace conflict). However, if I name it something

different,
and then move files over, it tends to not work because the ASPX files are
looking for code based on the original project's namespace.

The only way I've seen to update the project on the web from VS is to use
the copy project button. However, there isn't an incremental copy - it
sends all the files.

Am I missing something here? I know I can FTP the files, but that would
require going outside of Visual Studio to do it.

Any suggestions would be appreciated!

Thanks.

-- Kent Iler
----------------------------------------------------------------------
ke**@iler.NOSPAM.com
Please CC: all replies via e-mail
Remove .NOSPAM from e-mail address

Jul 21 '05 #3
You may be correct - I remember I have used your technique before in VS, in
VS.NET I have wanted to do it manually (because of my projects nature).

A suggestion: (there may be a better and correct way to do this)

* Create the directory and enable it as I explained in the previous post
(w/o copying any files)
* Create a new "empty project" in that location (add project to your
solution)
* Be sure to enable "Show all files" on both projects - it's an icon in the
solution explorer
* Drag & drop (use Ctrl to copy - not move) files as they are needed.

Be sure to copy only the needed files - and just leave the standard-elements
of the empty project.

This only works if you can browse to the location in question. If the site
is on an ftp server or similar, you may have to map the drive using some
third-party software, you could check out webdrive from South River
Technologies www.webdrive.com
(this tool lets you map an FTP/WebDAV site as a drive).

Regards,

Harald Bjorøy
www.ulriken-consulting.no
"Kent P. Iler" <ke******@hotmail.com> wrote in message
news:3c*************************@posting.google.co m...
But how do you copy the single file after you have made a change? In
VS6, you could have a project setup for both local and remote
websites, and just copy/paste. You also had the option for coping the
website, but choosing only files that have changed vs. pushing the
entire site out.

In order to move a single file in VS.NET 2003, I'm thinking I would
need to FTP it, which means using another tool NOT integrated with VS.

Is this correct?

--Kent Iler

"Harald Bjorøy" <ha***********@ulriken-consulting.com> wrote in message

news:<#z*************@tk2msftngp13.phx.gbl>...
I am not sure I follow all you say; but I have successfully been working the way I believe you describe here.

I work at my local machine, and deploy by copy to my customers; I even have two parallell versions of the same project, the "release"-version and a test version.

The way I do it:
a) the server must (of course) have the correct framework installed
b) I create a folder on the server, typically a subdirectory of the WWWRoot (not necessarily linked to the name of the project)
c) Create an application for the given subdirectory (using IIS admin-tools, find the directory, click properties, click "create application")
d) Copy the neccessary files from your development directories to the
application directory on the server. Normally global.asax, web.config,
bin\<project>.dll and many aspx-files. I you change one aspx-file, including events and source code, you have to deploy both the aspx and the
bin\<project>.dll files.

- no install required.

Regards,

Harald Bjorøy

"Kent P. Iler" <ke**@iler.NOSPAM.com> wrote in message
news:A89bb.535824$uu5.89430@sccrnsc04...
Hi,

I've been using Visual Studio (not .Net) for many years (6+). I'm just
now
switching to VS.NET 2003. I am building my first project. In the
past, I tend to work on my local machine (having local versions of IIS and SQL
Server). Then after I'm ready to move the site to the web, I will

initially
create a new project in the same solution that contains the web server on the Internet. I start by doing a full copy, and then as I make updates, I can pick and choose the files I put. If I only update a single file, then I
just copy/paste that one file.

I don't see any way of doing something like that with .Net. When I

try to create a project on the web server with the same name and in the same
project, I get an error (can't have 2 projects named the same in the same solution - namespace conflict). However, if I name it something

different,
and then move files over, it tends to not work because the ASPX files are looking for code based on the original project's namespace.

The only way I've seen to update the project on the web from VS is to use the copy project button. However, there isn't an incremental copy - it sends all the files.

Am I missing something here? I know I can FTP the files, but that would require going outside of Visual Studio to do it.

Any suggestions would be appreciated!

Thanks.

-- Kent Iler
----------------------------------------------------------------------
ke**@iler.NOSPAM.com
Please CC: all replies via e-mail
Remove .NOSPAM from e-mail address

Jul 21 '05 #4

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

Similar topics

16
by: Madhuri Mittal | last post by:
Hi, I know that we can define a class over multiple source files using the keyword 'Partial' in C# within a project. Can we define the class over multiple projects using the 'Patial' keyword- I...
4
by: Kent P. Iler | last post by:
Hi, I've been using Visual Studio (not .Net) for many years (6+). I'm just now switching to VS.NET 2003. I am building my first project. In the past, I tend to work on my local machine...
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
6
by: Ronald Mai | last post by:
In my opinion, Ellipsis might be in the middle, not only in leftmost or rightmost, so a placeholder approach can be much more flexible and convenient. Here is a reference implementation: _ =...
0
by: Raffi B. | last post by:
I have a form named MainWindow in my project. Visual Studio C# Express automatically creates MainWindow.Designer.cs and MainWindow.resx as partial classes on MainWindow. I am trying to add a new C#...
3
by: erich | last post by:
In VS2005, creating a new form creates the form class and a partial (frm*.designer.vb) class file and displays the partial class beneath the main form frm*.vb, which is great. However, when...
5
by: Matthew Wilson | last post by:
I wrote some code to create a user and update a user on a remote box by sending emails to that remote box. When I was done, I realized that my create_user function and my update_user function were...
5
by: SAL | last post by:
Hello, I would like to be able to set the WHERE clause of a select statement on the fly. I have a DataAccess layer designed using the DataSet designer and a BusinessLogic layer using classes. The...
5
by: Sagar | last post by:
I am working on a migration project for a huge asp.net application now running in framwework 1.1 to dotnet 2.0 As a first step, I opened the .sln files of the project in VS.Net 2005. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.