473,486 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How put source files in sub folder?

I've created a sub folder named Source. I then removed my CS files
from the project/solution, moved them into Source and added them back.
After building, they are again in the root folder. I don't see a place
in the configurations to keep this from happening.

Any suggestions?

Thanks,
Brett

Dec 15 '05 #1
4 1806

Brett Romero wrote:
I've created a sub folder named Source. I then removed my CS files
from the project/solution, moved them into Source and added them back.
After building, they are again in the root folder. I don't see a place
in the configurations to keep this from happening.


I'm not sure what you are asking. You can simply create a new folder
in the project, if you want to put files in it. Right click on the
project,
select Add | New Folder and it will create a folder for you in the
project.
Then just add the files from that folder into your project folder.

Does that answer your question?

Matt

Dec 15 '05 #2
Yes - that works. You just can't add an existing folder or reference
files in an existing folder that isn't in the project and expect those
files to remain in the folder.

Thanks,
Brett

Dec 15 '05 #3
Brett,
Actually I think you can. If you click the "Show All Files" icon at the top
of solution explorer, you can right-click on your externally created folder
and choose "Include in project".
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Brett Romero" wrote:
Yes - that works. You just can't add an existing folder or reference
files in an existing folder that isn't in the project and expect those
files to remain in the folder.

Thanks,
Brett

Dec 15 '05 #4
Brett -
Click Add Existing file from the project right-click menu. When you
select your file, click on the little drop-down next to the Open/Add
button (don't click the Open/Add button yet) and choose "Add as Link".
That way it will not copy the file from its current location to your
project folder, but it will still be included when you build your project.

Joshua Flanagan
http://flimflan.com/blog
Brett Romero wrote:
Yes - that works. You just can't add an existing folder or reference
files in an existing folder that isn't in the project and expect those
files to remain in the folder.

Thanks,
Brett

Dec 16 '05 #5

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

Similar topics

8
1922
by: Adam Clauss | last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to get them all added to the solution. Preferable would be that the...
1
1012
by: Andy | last post by:
Hi, I need to deploy my web app (using XCOPY), but first need to put all of the source under source control (not vss). I guess the question is, "Q1) what files need to go under source control?"...
2
1817
by: clintonb | last post by:
Using Visual Studio 2005, I created a new website: File->New->Web Site and chose the ASP.Net Web Site template. Saved it in location c:\Projects\GCSLRMS_DotNet\WS\WebSite1. It created the...
1
3950
by: TC | last post by:
I'm using Visual Studio 2005 with SourceGear Vault. I'm having trouble with the integrated source code control features. I think the problem is entirely with Visual Studio, not Vault. First, let...
1
2385
by: nightgamer360 | last post by:
i am a newbie to computer programming having gotten visual basic 6 and borland c++ builder 6 as gifts. is it possible to view the source code (not file information) of a folder (such as a basic...
5
2747
by: clintonb | last post by:
I'm a newbie when it comes to asp.net. All my prior experience is in making Windows applications in C++. In the past when I made windows applications, the project or target file would keep...
1
2463
by: Sunshine192 | last post by:
Hi, I'm still kinda new to PHP so I could do with some advice. I'm using the code below to select and show a random image from a folder of images. rotate.php <?php // Make this the relative...
4
56992
by: aSoundMind | last post by:
Hi there, I recieve this error Server Error in '/integrate' Application. -------------------------------------------------------------------------------- Configuration Error Description: An...
6
4596
by: Dustan | last post by:
I've been paging through the source code for various C modules in python, and wanted to find the source of some of the builtin functions. I searched through the Modules, Objects, Python, and Parser...
0
7094
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
7173
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...
1
6839
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...
0
7305
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...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4863
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...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.