S
Steve H
I am trying to create a Visual Studio Add-in that accesses a database
project. The problem is that I cannot access the database project object in
the solution using the Projects.Item method. The only way I can get the
object is using a for..each on the Solution.Projects Collection as follows:
For Each oProj In applicationObject.Solution.Projects
MsgBox(oProj.Name)
Next
When I step the debug run and hit the database project in the above
for..each loop, all members on the project are null. If I try to execute
the MsgBox(oProj.Name) against the object, the Add-In stops running and I'm
returned to the IDE as if nothing happened. All other projects in the
solution (VB.NET, C# and Setup projects) have associated project objects
that appear correctly (all members are populated.)
Any ideas on why this is happening?
Thank you,
-Steve
project. The problem is that I cannot access the database project object in
the solution using the Projects.Item method. The only way I can get the
object is using a for..each on the Solution.Projects Collection as follows:
For Each oProj In applicationObject.Solution.Projects
MsgBox(oProj.Name)
Next
When I step the debug run and hit the database project in the above
for..each loop, all members on the project are null. If I try to execute
the MsgBox(oProj.Name) against the object, the Add-In stops running and I'm
returned to the IDE as if nothing happened. All other projects in the
solution (VB.NET, C# and Setup projects) have associated project objects
that appear correctly (all members are populated.)
Any ideas on why this is happening?
Thank you,
-Steve