473,396 Members | 2,029 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,396 software developers and data experts.

Easy way to add large numbers of existing source files to project?

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 folders are actually created in the Solution Explorer so that I
can find things easily.

Its easy to select multiple files out of a single folder, but not recursively into subfolders.

Any ideas?

--
Adam Clauss
ca*****@tamu.edu
Nov 16 '05 #1
8 1913
Isn't that what macros are supposed to help get done? Have you tried?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
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 folders are actually created in the Solution Explorer so that I can find things easily.

Its easy to select multiple files out of a single folder, but not recursively into subfolders.
Any ideas?

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #2
Perhaps, but I was wondering if there was some way, already built-in maybe, that would save me the time as I've never done a macro
for VS.

--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Isn't that what macros are supposed to help get done? Have you tried?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
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

folders are actually created in the Solution Explorer so that I
can find things easily.

Its easy to select multiple files out of a single folder, but not

recursively into subfolders.

Any ideas?

--
Adam Clauss
ca*****@tamu.edu


Nov 16 '05 #3
The easy way *is* with a macro. There's probably a macro that
somebody has built already and there's lots of samples that can
be modified.

Google: "visual studio"+"macro"

If its only for one solution it may not be timely to do so but
otherwise you can look at it as an oppontunity to finally learn
how to do something useful like recursing a directory of files.
I've got to take on this task myself someday so try to understand
I'm not talking down to you.

You might also consider backing up the .sln file and using C# and
the framework to modify the .sln file directly but you'll still have to
recurse the directories and subdirectories. Study this snippet of
a .sln file and note that once the project is created all of the CLIDs
are identical throughout the entire .sln file. All you'd have to do is
write
a template and fill in the blanks using values from your recurser.

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
"http://localhost/70315QUE/315C11/315C11.csproj
", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject

Isn't being a real software developer exciting? :-)

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...
Perhaps, but I was wondering if there was some way, already built-in maybe, that would save me the time as I've never done a macro for VS.

--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in

message news:%2****************@TK2MSFTNGP11.phx.gbl...
Isn't that what macros are supposed to help get done? Have you tried?
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
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

folders are actually created in the Solution Explorer so that I
can find things easily.

Its easy to select multiple files out of a single folder, but not

recursively into subfolders.

Any ideas?

--
Adam Clauss
ca*****@tamu.edu



Nov 16 '05 #4
No... heh the macro wasn't the easy way. And I cannot believe I did not think about this. Just... drag the folder in. Duh...

Before I figured out the dragging method, I did start looking at a macro, and it looks like there is one
(ProjectItem.AddFromDirectory()).

I also may have discovered a bug in VS. In both using that Macro and dragging the folders into the project from explorer, if I only
drug the root folder, and drug it so that it would be a top level folder in the project structure - nothign except the top folder
itself got added!

All of the files got copied over into the solution directory, as I expected - but none of them were actually in the project. The
top folder got created in the project, but it was empty.

--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
The easy way *is* with a macro. There's probably a macro that
somebody has built already and there's lots of samples that can
be modified.

Google: "visual studio"+"macro"

If its only for one solution it may not be timely to do so but
otherwise you can look at it as an oppontunity to finally learn
how to do something useful like recursing a directory of files.
I've got to take on this task myself someday so try to understand
I'm not talking down to you.

You might also consider backing up the .sln file and using C# and
the framework to modify the .sln file directly but you'll still have to
recurse the directories and subdirectories. Study this snippet of
a .sln file and note that once the project is created all of the CLIDs
are identical throughout the entire .sln file. All you'd have to do is
write
a template and fill in the blanks using values from your recurser.

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
"http://localhost/70315QUE/315C11/315C11.csproj
", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject

Isn't being a real software developer exciting? :-)

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...
Perhaps, but I was wondering if there was some way, already built-in

maybe, that would save me the time as I've never done a macro
for VS.

--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in

message news:%2****************@TK2MSFTNGP11.phx.gbl...
Isn't that what macros are supposed to help get done? Have you tried?
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
> 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
folders are actually created in the Solution Explorer so that I
> can find things easily.
>
> Its easy to select multiple files out of a single folder, but not
recursively into subfolders.
>
> Any ideas?
>
> --
> Adam Clauss
> ca*****@tamu.edu
>
>



Nov 16 '05 #5
I want to share that dumb feeling not discussing drag and drop
(almost) but I wasn't all that surprised to learn the dragged folder
remained empty.

The snippet I showed was pulled from a .sln file. If dragging were to
resolve this issue the contents of the .sln file would have to be
modified
including the reference to what I may have mistakenly referred to as
a CLSID Key [1].

What happened running the ProjectItem.AddFromDirectory macro?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1]
http://msdn.microsoft.com/library/de...m/reg_6vjt.asp

"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
No... heh the macro wasn't the easy way. And I cannot believe I did not think about this. Just... drag the folder in. Duh...
Before I figured out the dragging method, I did start looking at a macro, and it looks like there is one (ProjectItem.AddFromDirectory()).

I also may have discovered a bug in VS. In both using that Macro and dragging the folders into the project from explorer, if I only drug the root folder, and drug it so that it would be a top level folder in the project structure - nothign except the top folder itself got added!

All of the files got copied over into the solution directory, as I expected - but none of them were actually in the project. The top folder got created in the project, but it was empty.

--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in

message news:%2****************@TK2MSFTNGP09.phx.gbl...
The easy way *is* with a macro. There's probably a macro that
somebody has built already and there's lots of samples that can
be modified.

Google: "visual studio"+"macro"

If its only for one solution it may not be timely to do so but
otherwise you can look at it as an oppontunity to finally learn
how to do something useful like recursing a directory of files.
I've got to take on this task myself someday so try to understand
I'm not talking down to you.

You might also consider backing up the .sln file and using C# and
the framework to modify the .sln file directly but you'll still have to recurse the directories and subdirectories. Study this snippet of
a .sln file and note that once the project is created all of the CLIDs are identical throughout the entire .sln file. All you'd have to do is write
a template and fill in the blanks using values from your recurser.

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
"http://localhost/70315QUE/315C11/315C11.csproj
", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject

Isn't being a real software developer exciting? :-)

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...
Perhaps, but I was wondering if there was some way, already built-in
maybe, that would save me the time as I've never done a macro
for VS.

--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote
in message news:%2****************@TK2MSFTNGP11.phx.gbl...
> Isn't that what macros are supposed to help get done? Have you

tried?
>
> --
> <%= Clinton Gallagher
> A/E/C Consulting, Web Design, e-Commerce Software

Development
> Wauwatosa, Milwaukee County, Wisconsin USA
> NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
> URL http://www.metromilwaukee.com/clintongallagher/
>
>
> "Adam Clauss" <ca*****@tamu.edu> wrote in message
> news:u4**************@TK2MSFTNGP10.phx.gbl...
> > 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 > folders are actually created in the Solution Explorer so that I
> > can find things easily.
> >
> > Its easy to select multiple files out of a single folder, but not > recursively into subfolders.
> >
> > Any ideas?
> >
> > --
> > Adam Clauss
> > ca*****@tamu.edu
> >
> >
>
>



Nov 16 '05 #6
Sorry - I forgot to mention what happened with the macro. It depended on how I ran it - just like it depended on how I dragged it
in.

If I ran it such that:
myproject.ProjectItems.AddFromDirectory(rootFolder )

Then it would do the exact same thing - copy all the actual files over and create and empty root folder in the project.

If I instead created the root folder manually in the project, and then ran it as:
myproject.ProjectItems("rootfolder").ProjectItems. AddFromDirectory(rootFolder)

then it worked fine. Notice - I added the SAME root folder. So I would get an 'extra' folder layer of the root.
Ex:

Root
| ----Root
| ----Sub1
| ----Sub2
.... etc.

To get it to work via drag and drop, I created the root folder manually, and then selected all the subfolders (rather than the root
folder) and dragged them into the project (under the folder I manually created). This bypassed having the extra layer problem, but
still is kind of odd that I had to create the first level manually.
--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message news:uz**************@TK2MSFTNGP10.phx.gbl...
I want to share that dumb feeling not discussing drag and drop
(almost) but I wasn't all that surprised to learn the dragged folder
remained empty.

The snippet I showed was pulled from a .sln file. If dragging were to
resolve this issue the contents of the .sln file would have to be
modified
including the reference to what I may have mistakenly referred to as
a CLSID Key [1].

What happened running the ProjectItem.AddFromDirectory macro?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1]
http://msdn.microsoft.com/library/de...m/reg_6vjt.asp

"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
No... heh the macro wasn't the easy way. And I cannot believe I did

not think about this. Just... drag the folder in. Duh...

Before I figured out the dragging method, I did start looking at a

macro, and it looks like there is one
(ProjectItem.AddFromDirectory()).

I also may have discovered a bug in VS. In both using that Macro and

dragging the folders into the project from explorer, if I only
drug the root folder, and drug it so that it would be a top level

folder in the project structure - nothign except the top folder
itself got added!

All of the files got copied over into the solution directory, as I

expected - but none of them were actually in the project. The
top folder got created in the project, but it was empty.

--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in

message news:%2****************@TK2MSFTNGP09.phx.gbl...
The easy way *is* with a macro. There's probably a macro that
somebody has built already and there's lots of samples that can
be modified.

Google: "visual studio"+"macro"

If its only for one solution it may not be timely to do so but
otherwise you can look at it as an oppontunity to finally learn
how to do something useful like recursing a directory of files.
I've got to take on this task myself someday so try to understand
I'm not talking down to you.

You might also consider backing up the .sln file and using C# and
the framework to modify the .sln file directly but you'll still have to recurse the directories and subdirectories. Study this snippet of
a .sln file and note that once the project is created all of the CLIDs are identical throughout the entire .sln file. All you'd have to do is write
a template and fill in the blanks using values from your recurser.

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
"http://localhost/70315QUE/315C11/315C11.csproj
", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject

Isn't being a real software developer exciting? :-)

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...
> Perhaps, but I was wondering if there was some way, already built-in maybe, that would save me the time as I've never done a macro
> for VS.
>
> --
> Adam Clauss
> ca*****@tamu.edu
> "clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
> > Isn't that what macros are supposed to help get done? Have you
tried?
> >
> > --
> > <%= Clinton Gallagher
> > A/E/C Consulting, Web Design, e-Commerce Software
Development
> > Wauwatosa, Milwaukee County, Wisconsin USA
> > NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
> > URL http://www.metromilwaukee.com/clintongallagher/
> >
> >
> > "Adam Clauss" <ca*****@tamu.edu> wrote in message
> > news:u4**************@TK2MSFTNGP10.phx.gbl...
> > > 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 > > folders are actually created in the Solution Explorer so that I
> > > can find things easily.
> > >
> > > Its easy to select multiple files out of a single folder, but not > > recursively into subfolders.
> > >
> > > Any ideas?
> > >
> > > --
> > > Adam Clauss
> > > ca*****@tamu.edu
> > >
> > >
> >
> >
>
>



Nov 16 '05 #7
Wel at least working through and documenting here will help
others achieve the same success. Good job.
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:ev**************@TK2MSFTNGP09.phx.gbl...
Sorry - I forgot to mention what happened with the macro. It depended on how I ran it - just like it depended on how I dragged it in.

If I ran it such that:
myproject.ProjectItems.AddFromDirectory(rootFolder )

Then it would do the exact same thing - copy all the actual files over and create and empty root folder in the project.
If I instead created the root folder manually in the project, and then ran it as: myproject.ProjectItems("rootfolder").ProjectItems. AddFromDirectory(rootF
older)
then it worked fine. Notice - I added the SAME root folder. So I would get an 'extra' folder layer of the root. Ex:

Root
| ----Root
| ----Sub1
| ----Sub2
... etc.

To get it to work via drag and drop, I created the root folder manually, and then selected all the subfolders (rather than the root folder) and dragged them into the project (under the folder I manually created). This bypassed having the extra layer problem, but still is kind of odd that I had to create the first level manually.
--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in

message news:uz**************@TK2MSFTNGP10.phx.gbl...
I want to share that dumb feeling not discussing drag and drop
(almost) but I wasn't all that surprised to learn the dragged folder
remained empty.

The snippet I showed was pulled from a .sln file. If dragging were to resolve this issue the contents of the .sln file would have to be
modified
including the reference to what I may have mistakenly referred to as
a CLSID Key [1].

What happened running the ProjectItem.AddFromDirectory macro?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1]
http://msdn.microsoft.com/library/de...m/reg_6vjt.asp
"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
No... heh the macro wasn't the easy way. And I cannot believe I did
not think about this. Just... drag the folder in. Duh...

Before I figured out the dragging method, I did start looking at a

macro, and it looks like there is one
(ProjectItem.AddFromDirectory()).

I also may have discovered a bug in VS. In both using that Macro
and dragging the folders into the project from explorer, if I only
drug the root folder, and drug it so that it would be a top level

folder in the project structure - nothign except the top folder
itself got added!

All of the files got copied over into the solution directory, as I

expected - but none of them were actually in the project. The
top folder got created in the project, but it was empty.

--
Adam Clauss
ca*****@tamu.edu
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote
in message news:%2****************@TK2MSFTNGP09.phx.gbl...
> The easy way *is* with a macro. There's probably a macro that
> somebody has built already and there's lots of samples that can
> be modified.
>
> Google: "visual studio"+"macro"
>
> If its only for one solution it may not be timely to do so but
> otherwise you can look at it as an oppontunity to finally learn
> how to do something useful like recursing a directory of files.
> I've got to take on this task myself someday so try to
understand > I'm not talking down to you.
>
> You might also consider backing up the .sln file and using C# and > the framework to modify the .sln file directly but you'll still have to
> recurse the directories and subdirectories. Study this snippet
of > a .sln file and note that once the project is created all of the

CLIDs
> are identical throughout the entire .sln file. All you'd have to do is
> write
> a template and fill in the blanks using values from your
recurser. >
> Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
> "http://localhost/70315QUE/315C11/315C11.csproj
> ", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
> ProjectSection(ProjectDependencies) = postProject
> EndProjectSection
> EndProject
>
> Isn't being a real software developer exciting? :-)
>
> --
> <%= Clinton Gallagher
> A/E/C Consulting, Web Design, e-Commerce Software

Development
> Wauwatosa, Milwaukee County, Wisconsin USA
> NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
> URL http://www.metromilwaukee.com/clintongallagher/
>
>
>
>
> "Adam Clauss" <ca*****@tamu.edu> wrote in message
> news:uk**************@TK2MSFTNGP12.phx.gbl...
> > Perhaps, but I was wondering if there was some way, already

built-in
> maybe, that would save me the time as I've never done a macro
> > for VS.
> >
> > --
> > Adam Clauss
> > ca*****@tamu.edu
> > "clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in
> message news:%2****************@TK2MSFTNGP11.phx.gbl...
> > > Isn't that what macros are supposed to help get done? Have
you > tried?
> > >
> > > --
> > > <%= Clinton Gallagher
> > > A/E/C Consulting, Web Design, e-Commerce Software
> Development
> > > Wauwatosa, Milwaukee County, Wisconsin USA
> > > NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
> > > URL http://www.metromilwaukee.com/clintongallagher/
> > >
> > >
> > > "Adam Clauss" <ca*****@tamu.edu> wrote in message
> > > news:u4**************@TK2MSFTNGP10.phx.gbl...
> > > > 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
> > > folders are actually created in the Solution Explorer so
that I > > > > can find things easily.
> > > >
> > > > Its easy to select multiple files out of a single folder,

but not
> > > recursively into subfolders.
> > > >
> > > > Any ideas?
> > > >
> > > > --
> > > > Adam Clauss
> > > > ca*****@tamu.edu
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 16 '05 #8
You could use the button "Show All Files" from the Solution Explorer pane
this way:

Step 1: First of all copy your files into the project's folder (having the
folder structure you want).
Step 2: Click on a project in the Solution Explorer. Click on the "Show All
Files" button from the Solution Explorer pane. This will cause that all the
files will be displayed in the Solution Explorer pane (including the
folders)
Step 3: You can multi-select the files you want to include; right click on
the selection and select from the context menu "Include In Project". Be
careful not to include the "bin" or "obj" folders.

You will have to execute these steps for each project from your solution.

Hope this is is helpful.

Regards,
Adrian Vinca [MSFT], Developer Division
--------------------------------------------------------------------
This reply is provided "AS IS", without warranty (express or implied).

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.


I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way toget them all added to the solution. Preferable would be that the folders are actually created in the Solution Explorer so that Ican find things easily.

Its easy to select multiple files out of a single folder, but not recursively into subfolders.
Any ideas?

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #9

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

Similar topics

36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
19
by: rbt | last post by:
Here's the scenario: You have many hundred gigabytes of data... possible even a terabyte or two. Within this data, you have private, sensitive information (US social security numbers) about your...
14
by: Jason Heyes | last post by:
I have read item 26 of "Exceptional C++" that explains a way of minimising compile-time dependencies and, therefore, a way to improve compile speeds. The procedure involves replacing #include...
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....
1
by: Robert Jones | last post by:
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...
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...
8
by: Axter | last post by:
I normally use a program call Doxygen to document my source code.(http://www.stack.nl/~dimitri/doxygen) This method works great for small and medium size projects, and you can get good...
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...
30
by: David T. Ashley | last post by:
I have a large project on a Linux box that may eventually have several hundred 'C' source files, which need to be compiled and linked into several executables. Not all of the executables will...
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: 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
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,...
0
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...
0
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
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,...

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.