.Proj / .Sln as object

  • Thread starter Thread starter Farouche
  • Start date Start date
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
 
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.]
 
Back
Top