P
P
Paul2016-08-31 19:14:30
Programming
Paul, 2016-08-31 19:14:30

What APIs exist in Visual Studio (C#) to work with a project?

I am writing a C# code parser in C#, so far the parser works with a regular txt file into which the C# code is copied, but I would like to be able to open the project (for example, in Visual Studio the project is launched by a .sln file) and work with files source code contained in this project.
The question is how to do it, in which direction to dig. Perhaps the development environment (IDE) provides some interfaces for this. I would be grateful for any information.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Fat Lorrie, 2016-08-31
@Free_ze

Microsoft.Build
Visual Studio SDK Reference

Z
Zelimkhan Beltoev, 2016-08-31
@Beltoev

It will be much easier for you to set the parser on the project folder so that it goes through all the subfolders and searches for *.cs files to parse.

R
Rou1997, 2016-08-31
@Rou1997

You can write a plug-in for Visual Studio, but it will only work in the Community and it’s better, you can also write plug-ins only in it, you can also dig towards COM, everything is on it, but perhaps it’s better to write the *.sln, * parser yourself .csproj etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question