.Proj / .Sln as object

F

Farouche

Hi all


Was wondering: Is there anything out there that will me able to represent
..sln or .vbproj files as .Net objects.


I need to access the different properties of the files such as Project paths
and names in an .Sln file, and Reference paths and config properties from a
..vbproj file.


Now I try to get the properties using txt file / string manipulation and
ReEx, but there must be an easier way or some allready implemented solution
to it ???


I was thinking of something like :


Function GetSolutionObject(slnFilePath as string) as SolutionClass
.....
.....
End Function


Any ideas


Thanks in advance


Allan
 
R

Rob Vretenar

I've never tried this myself, but there are a number of classes that
support VStudio solutions and language specific projects (vbproj,
csproj) files. These object are described as part of the automation
model and have been desinged to help developers create add-ins for
Visual Studio. You can search MSDN for "Automation and Extensibility
Overview". This will provide you with a good starting point and will
show you how to use it.

Then look at "DTE Object Properties, Methods, and Events" which will
show you the object model.
Hope that helps.

Rob Vretenar [imason inc.]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top