1+ using System . Text ;
12using CodeLineCounter . Models ;
23using DotNetGraph ;
34using DotNetGraph . Attributes ;
@@ -84,7 +85,7 @@ private static DotNode CreateNode(Dictionary<string, (int incoming, int outgoing
8485 var info = vertexInfo [ vertex ] ;
8586 var node = new DotNode ( ) ;
8687 node . WithIdentifier ( vertex , true ) ;
87- node . Label = $ "{ vertex } " + Environment . NewLine + $ "\n In: { info . incoming } , Out: { info . outgoing } ";
88+ node . Label = $ "{ vertex } " + Environment . NewLine + $ "\n In: { info . incoming } , Out: { info . outgoing } ";
8889 node . Shape = DotNodeShape . Oval ;
8990 node . WithPenWidth ( 2 ) ;
9091
@@ -134,7 +135,7 @@ private static void GroupByNamespace(Dictionary<string, (int incoming, int outgo
134135 targetNamespaceList = [ ] ;
135136 namespaceGroups [ dep . TargetNamespace ] = targetNamespaceList ;
136137 }
137-
138+
138139 if ( ! targetNamespaceList . Contains ( dep . TargetClass ) )
139140 {
140141 targetNamespaceList . Add ( dep . TargetClass ) ;
@@ -154,7 +155,8 @@ private static async Task CompileGraphAndWriteToFile(string outputPath, DotGraph
154155
155156 await graph . CompileAsync ( context ) ;
156157 var result = writer . GetStringBuilder ( ) . ToString ( ) ;
157- await File . WriteAllTextAsync ( outputPath , result ) ;
158+ //using sync write for reliability with async we got some issues
159+ File . WriteAllText ( outputPath , result ) ;
158160 }
159161
160162 private static List < DependencyRelation > FilterAssemblyFromDependencies ( string ? filterAssembly , List < DependencyRelation > filteredDependencies )
0 commit comments