Sourcetrail
Sourcetrail copied to clipboard
Support C#/VB.Net
Any thoughts given to supporting the common dotNet languages? With the Rosyln compiler this might be relatively cheap to add to Visual Studio.
+1 by mail
+1 via reddit comment
"+ 1"
I'd like C# support and am in a position to get the commercial version. I also commented on the request for Python support, but C# would be a higher priority for me.
+1 via youtube
+1 I waste more time browsing/grepping C# code bases than I should.
"+ 1"
+1 very usefull
+1
+1 by mail
+1 by mail
Since we cannot keep up with language requests, we created the SourcetrailDB library to allow anyone to write custom indexers and extend language support for Sourcetrail.
If you are interested in writing an indexer for C#, please let us know!
Has someone been able to implement C# parsing?
+1
+1
.NET Core!
+1 .NET Core / .NET Standard for cross platforms (android / ios / windows/ linux) Please!
+1
.NET Core is a strong platform, would be great to have this support it.
Any update on support for C#?
I haven't heard of anyone working on this at the moment.
Wanted to inform you that i have just finished my first version of an indexer for .net. https://github.com/packdat/SourcetrailDotnetIndexer It DOES NOT parse C# or VB code, it works on compiled assemblies (so it SHOULD be language-independent in theory). Maybe someone out there finds it useful, even without source-code integration. (which had a low priority for me)
Thank you for making Sourcetrail and SourcetrailDB available !
@packdat: Wow! This is awesome! I just gave it a try and indexed the our Sourcetrail Extension for Visual Studio (which is written in c#). I mean, ok, you don't get the locations in the source code, but you get the graph! Look at that:
With a tiny change to your sourcecode, I even managed to call the indexer from within Sourcetrail's "Custom Source Group", so one can just click the refresh button to trigger the re-indexing:
Hello!
I have looking for a software like this for c#. I try to understand a project that is very big, actually there are many solutions and every solution haves many projects, so if you follow the data, it will call a function in another solution that maybe call another solition, it span over multiple solutions and projects. I have been trying to sollow the code but it feel like impossible task. Until i found this, to visualize the code, thank you very very much.
But i have a problem. I dont know how to get it to woek, i get a lot of errors. I have: Download the SourcetrailDotnetIndexer. build it in vs code with no Errors then try to make a new project in Sourcetrail, Custom command source group. And in the custom command i write the path to: SourcetrailDotnetIndexer\SourcetrailDotnetIndexer\bin\Debug\SourcetrailDotnetIndexer.exe -i %{SOURCE_FILE_PATH} -s C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v5.0
And in the files and directory to index i refer it to the asembly path of a small test api project: API/bin/Debug/net5.0
Please help, i dont know what i doing wrong. And thank you in advance, maybe this is a stupid question from anoob, and i should know better, but i dont know how to get this working even after reading the readme in github.
I have tried more but i get this in powershell:
@mlangkabel how did you change the source code to work with sourcetrail in visual studio and indes with refresh. i cang get this to work at all even from powershell: please help
Are you using a SourcetrailDB dll that is built for the same architecture (32 vs 64 bit) as your SourcetrailDotnetIndexer.exe?
@mlangkabel Hi thank you so much for your reply. You ask if I am using the SourcetrailDB dll that is build for the same architecture? But where do I choose that? Power shell terminal? Or in the Sourcetrail application?
I have use the one here : https://github.com/packdat/SourcetrailDotnetIndexer
it say there: "It uses SourcetrailDB for writing the 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."
I have build SourcetrailDotnetIndexer with x_64 as the plattform target in Microsoft vs code
I have tried to use the command in sourcetrail application command field, and i have also try to do it from powershell.
Probably both way that i am doing it are wrong?
i am using .Net 5
and the path to that is
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v5.0
I have others installed too, as you can see in the screenshot
and under
\Framework.NETFramework
i have :
v3.5
v4.0
.and all the way to v4.8
Maybe i am using the wrong path of .NetCore and should use intead .NetFramwork?
Did I put the correct info in the fields as you can see in the screenshot in source trail custom group? Could it be possible to have like a screen shot step by step how to? Like how did you do step by step screenshot to get c# solution to work? And will this be able to take on a multiple solution application? Thank you again, maybe if I can get this to work I would be able to understand this big application. And i am sure that many people will benefit for a step by step.
Here are som more screenshot if it helps trouble shooting
@mlangkabel Do you mind sharing a sample C# project with a matching SourceTrail project that is known to work please?