Skip to content

Commit fce1dfd

Browse files
VaclavEliasikpil
authored andcommitted
Update Program.cs
1 parent 0fd4f91 commit fce1dfd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/Box2D.NET.CommentConverter/Program.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
const string SummaryEnd = "/// </summary>";
55
const string FileFilter = "*.cs";
66

7-
var folderPath = @"..\..\..\..\..\src\Box2D.NET\";
7+
var repoRoot = Directory.GetCurrentDirectory();
8+
9+
#if DEBUG
10+
repoRoot = Path.GetFullPath(Path.Combine(repoRoot, "..", "..", "..", "..", ".."));
11+
#endif
12+
13+
var folderPath = Path.Combine(repoRoot, "src", "Box2D.NET");
814

915
// Tests: B2BodySim, B2World, B2WorldId
1016
var files = Directory.GetFiles(folderPath, FileFilter, SearchOption.AllDirectories)
@@ -151,4 +157,4 @@ void WrapCommentsWithSummaryTags(List<string> lines, List<CommentBlock> commentB
151157
record class CommentBlock(int StartIndex, int EndIndex)
152158
{
153159
public int Length => EndIndex - StartIndex + 1;
154-
}
160+
}

0 commit comments

Comments
 (0)