StrataFrame Forum
Back
Login
Login
Home
»
.NET Forums
»
General .NET Discussion
»
How to get project items from VS add-in
How to get project items from VS add-in
Post Reply
Like
0
How to get project items from VS add-in
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Paul Chase
Paul Chase
posted 16 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 414,
Visits: 2.8K
I am trying to create an VS add in for my reporting engine. I need to be able to loop through each project and then loop through the project and find reports by type. (Like you do with the Bo Mapper) .. i am trying something like below just cannot figure out how to load or just get at the assembly. thanks for any help
Dim
LoProject
As
Project
Dim
loAssembly
As
Reflection.Assembly
Try
'Check to see if Solution is open, I forget everytime debugging this
If
Not
_appobject.Solution.IsOpen
Then
MessageBox.Show(
"Please load solution"
)
Else
For
Each
LoProject
In
_appobject.Solution.Projects
'show what projects we have
MessageBox.Show(
"Project Name: "
& LoProject.FullName)
'-- Here i need to be able to load the assembly and then do through the types
' loAssembly = Reflection.Assembly.Load
For
Each
loType
As
Type
In
loAssembly.GetTypes()
If
loType.IsSubclassOf(
GetType
(DevExpress.XtraReports.UI.XtraReport))
Then
Me
.ListView1.Items.Add(loType.FullName)
End
If
Next
Next
End
If
Catch
objException
As
System.Exception
MessageBox.Show(objException.ToString)
End
Try
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
How to get project items from VS add-in
Paul Chase
-
16 Years Ago
Youare going to have to use the EnvDTE name space, you will then wan...
Trent L. Taylor
-
16 Years Ago
Hi Trent I got the referencebut am still having trouble trying to find...
Paul Chase
-
16 Years Ago
That won't work in most cases. You will have to use the...
Trent L. Taylor
-
16 Years Ago
Thanks alot Trent I'll try that, so much for "It will probably be...
Paul Chase
-
16 Years Ago
[quote]Aw well nothing is ever easy is it? [/quote] No...add-ins are...
Trent L. Taylor
-
16 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search