473,692 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ed u
Nov 16 '05 #1
8 1934
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.e du> wrote in message
news:u4******** ******@TK2MSFTN GP10.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.ed u

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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message news:%2******** ********@TK2MSF TNGP11.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.e du> wrote in message
news:u4******** ******@TK2MSFTN GP10.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.ed u


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("{FAE04 EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
"http://localhost/70315QUE/315C11/315C11.csproj
", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
ProjectSection( ProjectDependen cies) = postProject
EndProjectSecti on
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.e du> wrote in message
news:uk******** ******@TK2MSFTN GP12.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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in

message news:%2******** ********@TK2MSF TNGP11.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.e du> wrote in message
news:u4******** ******@TK2MSFTN GP10.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.ed u



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.Ad dFromDirectory( )).

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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message news:%2******** ********@TK2MSF TNGP09.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("{FAE04 EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
"http://localhost/70315QUE/315C11/315C11.csproj
", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
ProjectSection( ProjectDependen cies) = postProject
EndProjectSecti on
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.e du> wrote in message
news:uk******** ******@TK2MSFTN GP12.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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in

message news:%2******** ********@TK2MSF TNGP11.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.e du> wrote in message
news:u4******** ******@TK2MSFTN GP10.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.ed u
>
>



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.Add FromDirectory 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.e du> wrote in message
news:Oq******** ******@TK2MSFTN GP09.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.Ad dFromDirectory( )).

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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in

message news:%2******** ********@TK2MSF TNGP09.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("{FAE04 EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
"http://localhost/70315QUE/315C11/315C11.csproj
", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
ProjectSection( ProjectDependen cies) = postProject
EndProjectSecti on
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.e du> wrote in message
news:uk******** ******@TK2MSFTN GP12.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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote
in message news:%2******** ********@TK2MSF TNGP11.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.e du> wrote in message
> news:u4******** ******@TK2MSFTN GP10.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.ed u
> >
> >
>
>



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.Proje ctItems.AddFrom Directory(rootF older)

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.Proje ctItems("rootfo lder").ProjectI tems.AddFromDir ectory(rootFold er)

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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message news:uz******** ******@TK2MSFTN GP10.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.Add FromDirectory 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.e du> wrote in message
news:Oq******** ******@TK2MSFTN GP09.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.Ad dFromDirectory( )).

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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in

message news:%2******** ********@TK2MSF TNGP09.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("{FAE04 EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
"http://localhost/70315QUE/315C11/315C11.csproj
", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
ProjectSection( ProjectDependen cies) = postProject
EndProjectSecti on
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.e du> wrote in message
news:uk******** ******@TK2MSFTN GP12.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.ed u
> "clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message news:%2******** ********@TK2MSF TNGP11.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.e du> wrote in message
> > news:u4******** ******@TK2MSFTN GP10.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.ed u
> > >
> > >
> >
> >
>
>



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.e du> wrote in message
news:ev******** ******@TK2MSFTN GP09.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.Proje ctItems.AddFrom Directory(rootF older)

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.Proje ctItems("rootfo lder").ProjectI tems.AddFromDir ectory(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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in

message news:uz******** ******@TK2MSFTN GP10.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.Add FromDirectory 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.e du> wrote in message
news:Oq******** ******@TK2MSFTN GP09.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.Ad dFromDirectory( )).

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.ed u
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote
in message news:%2******** ********@TK2MSF TNGP09.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("{FAE04 EC0-301F-11D3-BF4B-00C04F79EFBC}") = "315C11",
> "http://localhost/70315QUE/315C11/315C11.csproj
> ", " {2F7BB741-BEA0-4243-937E-8C69FBF71649}"
> ProjectSection( ProjectDependen cies) = postProject
> EndProjectSecti on
> 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.e du> wrote in message
> news:uk******** ******@TK2MSFTN GP12.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.ed u
> > "clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in
> message news:%2******** ********@TK2MSF TNGP11.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.e du> wrote in message
> > > news:u4******** ******@TK2MSFTN GP10.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.ed u
> > > >
> > > >
> > >
> > >
> >
> >
>
>



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.e du

Nov 16 '05 #9

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

Similar topics

36
6375
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 something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining readonly attributes in classes worth the hassle ? Does duck-typing scale well in complex
19
2928
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 company's clients. Your company has generated its own unique ID numbers to replace the social security numbers. Now, management would like the IT guys to go thru the old data and replace as many SSNs with the new ID numbers as possible. You...
14
1753
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 directives with forward declarations from within header files. However, a potentially large number of source files may have previously relied on the removed #include directives being present. Therefore it is likely that a large number of source...
1
2603
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. I've tried microsoft.public.dotnet.faqs and m.p.d.framework. ----- Hi, I have an issue with Visual Studio dotnet when using "Add Existing Item" to a web project. When I create a new project, that option works fine. When I
1
1669
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 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...
1
1552
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 understand my question fully, I do the following. 1. Create a project that is a WindowControlLibrary called Test in C++.NET in this project we have several files but the following are intresting for
8
5143
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 documentation like the following: http://axter.com/smartptr Now I'm on a client site, and I'm trying to create the same type of documentation on a very large project. I ran the Doxygen program, and it ran for over 16 hours, before I had
1
1950
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 case. Below is the hierarchy in my clearcase explorer. |
30
3859
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 use all of the files (i.e. there would be no linker references to some symbols). The project will naturally be broken down into several or more subdirectories.
0
8604
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
8538
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8961
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
8800
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
8801
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...
0
7627
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
2974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2238
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1957
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.