Mi Mark,
I have just started learning how to use/write macros and so cannot tell you
if it is possible to have a macro automatically access each file in your
solution. You can however, write your own macro to do the same thing. My
solution contains a single project and the subroutine/macro shown below
illustrates how to list all files in the solution/project files in the IDE
output window. Hope this helps.
Ian
Sub viewFilesInCurrentProject()
Dim oProjectItems As ProjectItems =
DTE.ActiveSolutionProjects(0).ProjectItems
Dim oItem As ProjectItem
For Each oItem In oProjectItems
Dim oFilename As String = oItem.Name()
Debug.WriteLine("file name = " + oFilename)
Dim oFilePath as String = oItem.Filenames(1)
Debug.WriteLine("file path= " + oFilename)
' call yourSubroutine( oFilename )
Next
End Sub
> Is so, could you please redirect or post me an example ?
> Thank you.