Including a document into a project using code...

  • Thread starter Thread starter xavendano
  • Start date Start date
X

xavendano

Hi,

I have a tool made in vb.net that generate code.....class files o mod files.

If this tool is an Add-in, how can I insert this new files into a current
project using code...????

Thanks......
 
In add-in or macro, you can use
DTE.ItemOperations.AddNewItem("Local Project Items\Class", "Class1.vb")
to add new class or
DTE.ItemOperations.AddExistingItem("C:\Class1.vb")
to add existing file.
 
Thanks Peter.....

Excuse me, my english is so bad.....

That DTE object is a EnvDTE referece I supposse.....but can you show me how
to declare the object....
Example:

Dim x As New EnvDTE.ProjectsEvents???

That is correct? How can I find the correct objetc into a EnvDTE
reference...

Thanks....
 
Back
Top