|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Determine projects in solution within VS2005 macroI wish to create a macro (that runs within the BuildEvents_OnBuildDone
environment event IN VS2005) that loops through each of the projects in the current solution and retrieves some details about each. At present I just want to do something simple such as MsgBox each project's .vbproj path/filename. I've been unable so far to locate any reference material to help me figure out how to do this. Could anyone provide an example or a link to a good reference site that would help me to achieve this? Many thanks, -- (O)enone Hello Oenone,
> I wish to create a macro (that runs within the BuildEvents_OnBuildDone Try this code out> environment event IN VS2005) that loops through each of the projects > in the current solution and retrieves some details about each. At > present I just want to do something simple such as MsgBox each > project's .vbproj path/filename. > > I've been unable so far to locate any reference material to help me > figure out how to do this. > > Could anyone provide an example or a link to a good reference site > that would help me to achieve this? Public Sub ShowFilePath(ByVal scope As EnvDTE.vsBuildScope, ByVal action As EnvDTE.vsBuildAction) Handles BuildEvents.OnBuildDone For Each project As EnvDTE.Project In DTE.Solution Dim fileName As String = project.Properties.Item("FileName").Value MessageBox.Show(fileName) Next End Sub -- Jared Parsons [MSFT] jared***@online.microsoft.com All opinions are my own. All content is provided "AS IS" with no warranties, and confers no rights. Jared Parsons [MSFT] wrote:
> Try this code out Perfect -- thanks very much.-- (O)enone
sql server 2005 tools configuration starts when I build a distribution project (VB 2005)
for next problem ComponentOne : Extract to RTF problem Outlook Add In suddenly stops loading TypeForwardedToApp attribute. Referring form objects in VB 2005. DLL Callback access mp3 header Replacement for Inet Control text justification in excel |
|||||||||||||||||||||||