Hi Ed,
Thanks for the response, that was what I was looking for. Is there
anyplace where the properties associated with a particular object are listed?
I tried searching for "StartupProject" but only got a reference to a bug.
Thanks,
tcr
> You could try using the "StartupProject" property in the
> DTE.Solution.Properties collection.
[quoted text clipped - 24 lines]
>
> This post is 'AS IS' with no warranties, and confers no rights.
"Ed Dore [MSFT]" - 19 Aug 2005 19:43 GMT
The documentation can be pretty lame when it comes to these properties.
I've made a habit of creating and run macros similar to the following to
identify the various properties that might be in a given set of properties.
Once you find something that looks promising, I check to see what the
property value is, and whether or not it'll be useful.
Function GetMiscDumpPane() As OutputWindowPane
Dim ow As OutputWindow =
DTE.Windows.Item(Constants.vsWindowKindOutput).Object
Dim pane As OutputWindowPane
Try
pane = ow.OutputWindowPanes.Item("MiscDumpPane!!!")
Catch ex As System.ArgumentException
pane = ow.OutputWindowPanes.Add("MiscDumpPane!!!")
End Try
Return pane
End Function
Sub DumpProjectProperties()
Dim pane As OutputWindowPane = GetMiscDumpPane()
For Each project As EnvDTE.Project In DTE.Solution.Projects
pane.OutputString("Properties for " & project.Name & vbCr)
For Each prop As EnvDTE.Property In project.Properties
pane.OutputString(" " & prop.Name & vbCr)
Next
For Each configProp As EnvDTE.Property In
project.ConfigurationManager.ActiveConfiguration.Properties
pane.OutputString(" " & configProp.Name & vbCr)
Next
Next
End Sub
Sub DumpSolutionProps()
Dim pane As OutputWindowPane = GetMiscDumpPane()
For Each prop As [Property] In DTE.Solution.Properties
pane.OutputString(prop.Name & vbCr)
Next
End Sub
Ed Dore [MSFT]
This post is 'AS IS' with no warranties, and confers no rights.
tcr - 19 Aug 2005 20:04 GMT
Hi Ed,
Thanks for the help. Do you know anyone that might be able to answer my
other post "Custom AppWizard Bug??" that I posted on 8/17 as well? I had
originally posted this in a couple of other groups until I found this one but
haven't gotten any responses at all.
tcr
> The documentation can be pretty lame when it comes to these properties.
> I've made a habit of creating and run macros similar to the following to
[quoted text clipped - 38 lines]
>
> This post is 'AS IS' with no warranties, and confers no rights.