Google-Apps
Hauptmenü

Post a Comment On: the urban canuk, eh

"Automate Visual Studio from external tools"

2 Comments -

1 – 2 of 2
Blogger K.BhaskarReddy said...

hi please let me know how to add .cs files to the solution file

please provide the code

4:32 AM

Blogger bryan said...

Solution files can't be compiled, so they support code files. All code elements must be added to a Project.

What you want to achieve is adding a ProjectItem to the ProjectItems collection on the Project.

project.ProjectItems.Add(...)

More info about the Visual Studio object model
can be found here.

Most code samples out there will refer to the context of building an Addin or Macro, which reside within Visual Studio. Those code samples can be ported to this scenario where the DTE object is the Visual Studio instance.

10:59 AM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot