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

Is there a way to easily add many existing files to an asp.net project?

I have an asp.net web site that I want to develop further, but I don't have
the Visual Studio project files for the site.

I have all the source files for the site (aspx, cs etc) and the site itself
is running quite happily on my development web server, however within Visual
Studio the only way to add an existing file has two problems:

1. You can only add one file at a time
2. You don't appear to be able to navigate into subfolders where all of my
existing project files are.

I can see from investigating the visual studio project files that the files
appear to be held in the .csproj file, so I assume it would be possible to
write something to generate the <files> section:

<Files>
<Include>
<File
RelPath = "AssemblyInfo.cs"
BuildAction = "Compile"
/>
<File
RelPath = "Global.asax"
SubType = "Component"
BuildAction = "Content"
/>
<File
RelPath = "Global.asax.cs"
DependentUpon = "Global.asax"
SubType = "Code"
BuildAction = "Compile"
/>

However I am looking for either a utility that can already do this (and of
course it would have to be able to calculate the "DependentUpon" entries
too) or some way for Visual Studio to "import" a web site.
Nov 19 '05 #1
1 1645
Hey Robert,

Maybe this is too simplistic, but I don't think you're right about the
capabilities of adding files.

1. Open a VS.NET project on your machine.
2. Map a drive to the development Web server and location of the files.
3. Using Windows Explorer, select the files and folders you want to add.
4. Drag and drop the files and folders into the project in the Solution
Explorer pane.

That adds them en masse.

Ken

"Robert Jones" <ro**********@btopenworld.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have an asp.net web site that I want to develop further, but I don't have
the Visual Studio project files for the site.

I have all the source files for the site (aspx, cs etc) and the site
itself is running quite happily on my development web server, however
within Visual Studio the only way to add an existing file has two
problems:

1. You can only add one file at a time
2. You don't appear to be able to navigate into subfolders where all of my
existing project files are.

I can see from investigating the visual studio project files that the
files appear to be held in the .csproj file, so I assume it would be
possible to write something to generate the <files> section:

<Files>
<Include>
<File
RelPath = "AssemblyInfo.cs"
BuildAction = "Compile"
/>
<File
RelPath = "Global.asax"
SubType = "Component"
BuildAction = "Content"
/>
<File
RelPath = "Global.asax.cs"
DependentUpon = "Global.asax"
SubType = "Code"
BuildAction = "Compile"
/>

However I am looking for either a utility that can already do this (and of
course it would have to be able to calculate the "DependentUpon" entries
too) or some way for Visual Studio to "import" a web site.


Nov 19 '05 #2

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

Similar topics

1
by: Jon Paugh | last post by:
Hi Friendly Newsgroup Readers, I switched to another PC and pulled all my source code for my solution to my new PC, after first dutifully adding my web project directories as appropriately named...
0
by: Denis | last post by:
Hello, I am working on a large business application written mostly with VC++ and MFC. What I'm trying to do is accessing my database with the existing functions in my c++ application using XML...
1
by: Camel Software | last post by:
I've posted this in other places, but didn't get an answer. The project I'm working on is C#, so perhaps this is an okay place to post this. If there's a more appropriate newsgroup, I'm open to it....
3
by: VB Programmer | last post by:
How do you add an existing folder to a project in VS.NET? It will only let me create new folders, or add existing files. Thanks.
2
by: G Dean Blake | last post by:
If I add an existing .aspx file in another project to a new project, everything works fine except that it doesn't bring along the .xsd datasets. So then if I add existing .xsd file to my new...
2
by: Bill Nguyen | last post by:
I would like to add a new VB.NET project using the same folder being used by another project so that I can share several forms already creaded by the other project. However, .NET created a new...
1
by: tony | last post by:
Hello!! Normally I use C# but we have a project that is creating a window control library DLL that is done in C++.NET and that is here I have some problems that I want to solve. To be able to...
1
by: rohinichandrap | last post by:
Hi, I have converted a workspace(A.dsw) from VC++ 6.0 to VC++ 7.1(A.sln). The solution A.sln has three projects in it B,C,D. My software configuration management is done in Rational clear...
0
by: newjazzharmony | last post by:
I'm working in Visual Studio 2003 and I'm trying to add a web project to a solution. When I right-click on the solution and select "Add Existing Project you want to add the project from:" that is...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.