Automating Visual Studio

I am writing a 'VS Add-in' which I want to provide a command which will add a .h file to the active projcet. I have got the IApplication object and want to know if there is a way to do this ?
LVL 1
BridgeAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
chensuCommented:
1. Get the ActiveProject property of the Application object.

2. Retrieve the BuildProject object (QueryInterface) from the active Project object.

3. Call the AddFile method of the BuildProject object.
0
 
BridgeAuthor Commented:
Your answer is correct and I'll give you the points on your next reply, but where did you get this information as it does not appear in the Visual Studio documentation ?
0
All Courses

From novice to tech pro — start learning today.