Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a class diagram for F#?

I am using Visual Studio 2015 with F#. In C# projects, you can create class diagram files (*.cd) to visualize the types in your solution and their dependencies on each other. Is there anything available like that for F#?

I tried manually creating a *.cd in my project but a dialog popped up saying that those diagrams are only supported for C#, C++, and VB.

I also have Resharper, which has a Type Dependency diagram tool, which also does not work with F# projects.

like image 544
JamesFaix Avatar asked Oct 29 '22 12:10

JamesFaix


1 Answers

If you are looking just to visualize your types relation, you can use dotPeek from Resharper.

In dotPeek:

  1. Load the dll of your f# project.
  2. Select the types you want in the menu on the right.
  3. Click on the Inspect/Show Type Dependency Diagram
like image 149
tjw Avatar answered Dec 27 '22 19:12

tjw