Home

Awesome

This project attempts to create Sourcetrail-Databases from C# source code.
It is an offspring to my first project in the area of code-analysis, SourcetrailDotnetIndexer.

It uses the Roslyn compiler to parse the source and gather symbol-information.
It uses SourcetrailDB for writing the Sourcetrail-database.
For convenience, the native DLL for SourcetrailDB is already included, so you don't have to build it yourself.
Note, the native DLL is a x64 DLL so in your project settings, you have to specify x64 as the target platform as well.


Note, this project is in a very early and experimental state.
It probably contains bugs, so please be aware.

Contributors welcome !

As i'm only able to work on this project in my spare time, anyone who is able to contribute is welcome to do so !
If you have already worked with Roslyn, please check out the code and report any bugs you find or tell me how this tool can be made more efficient.

Building

Open the .sln in VisualStudio and build.
Make sure, you set the target-platform to x64 ! (because of the native SourcetrailDB.dll)

Usage

The following command-line arguments are supported:

Examples:

Screenshots

After executing the second example, open the database in Sourcetrail, select the class Program and inside that class the method Main
You should see something like this:
Screenshot1