Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / October 2005

Tip: Looking for answers? Try searching our database.

Enumerate ALL file is a Project?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WALDO - 31 Oct 2005 04:21 GMT
I'm developing an Add-In for Visual Studio. What I want to do is, whenever a
build is completed, I want to enumerate the files in the project, looking
for files with an extension (.rct, .rc, or .res) which are marked as
"Embedded Resource" then perform some commands on them. I tried enumerating
all the ProjectItems in each Project, but I only got those which would
participate in a compile (for exapmle all the .vb files)

How do I enumerate ALL the files in a project?

Any help is apprectiated
Thanks in advance

WALDO
Carlos J. Quintero [VB MVP] - 31 Oct 2005 11:12 GMT
Hi Waldo,

ProjectItems enumerate all files marked for inclusion in the project
("Include in Project", "Exclude from Project" context menu), it does not
matter their Build Action (Compiled, Embedded Resource, etc). I have just
verified to be sure. Are you sure that you are enumerating correctly
(recursively, etc.)?
Signature


Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

> I'm developing an Add-In for Visual Studio. What I want to do is, whenever
> a build is completed, I want to enumerate the files in the project,
[quoted text clipped - 9 lines]
>
> WALDO
WALDO - 31 Oct 2005 15:25 GMT
Ah hah!. It didn't occur to me that there was a recursive element involved
in getting the items. I see now that it returned top-level folder items. My
resource files are in a folder called 'Resources' (naturally ;)) and my
source files are in the root folder of the project. I guess I have to
iterate over those as well. D'uh!

Thanks Carlos.
I knew it was something simple.
This is what happens when you try to program after getting blasted at a
Halloween party ;)

WALDO

> Hi Waldo,
>
[quoted text clipped - 17 lines]
>>
>> WALDO

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.