Skip to content

Commit bee4f95

Browse files
committed
feature: supports new vs solution files
Signed-off-by: leo <[email protected]>
1 parent 6822ae3 commit bee4f95

File tree

3 files changed

+71
-124
lines changed

3 files changed

+71
-124
lines changed

SourceGit.sln

Lines changed: 0 additions & 123 deletions
This file was deleted.

SourceGit.slnx

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<Solution>
2+
<Folder Name="/.github/workflows/">
3+
<File Path=".github/workflows/build.yml"/>
4+
<File Path=".github/workflows/ci.yml"/>
5+
<File Path=".github/workflows/format-check.yml"/>
6+
<File Path=".github/workflows/localization-check.yml"/>
7+
<File Path=".github/workflows/package.yml"/>
8+
<File Path=".github/workflows/release.yml"/>
9+
</Folder>
10+
11+
<Folder Name="/build/resources/_common/applications/">
12+
<File Path="build/resources/_common/applications/sourcegit.desktop"/>
13+
</Folder>
14+
15+
<Folder Name="/build/resources/_common/icons/">
16+
<File Path="build/resources/_common/icons/sourcegit.png"/>
17+
</Folder>
18+
19+
<Folder Name="/build/resources/_common/">
20+
<File Path="build/resources/_common/sourcegit"/>
21+
</Folder>
22+
23+
<Folder Name="/build/resources/app/">
24+
<File Path="build/resources/app/App.icns"/>
25+
<File Path="build/resources/app/App.plist"/>
26+
</Folder>
27+
28+
<Folder Name="/build/resources/appimage/">
29+
<File Path="build/resources/appimage/sourcegit"/>
30+
<File Path="build/resources/appimage/sourcegit.appdata.xml"/>
31+
</Folder>
32+
33+
<Folder Name="/build/resources/deb/DEBIAN/">
34+
<File Path="build/resources/deb/DEBIAN/control"/>
35+
<File Path="build/resources/deb/DEBIAN/preinst"/>
36+
<File Path="build/resources/deb/DEBIAN/prerm"/>
37+
</Folder>
38+
39+
<Folder Name="/build/resources/rpm/SPECS/">
40+
<File Path="build/resources/rpm/SPECS/build.spec"/>
41+
</Folder>
42+
43+
<Folder Name="/build/scripts/">
44+
<File Path="build/scripts/localization-check.js"/>
45+
<File Path="build/scripts/package.linux.sh"/>
46+
<File Path="build/scripts/package.osx-app.sh"/>
47+
<File Path="build/scripts/package.windows.sh"/>
48+
</Folder>
49+
50+
<Folder Name="/build/">
51+
<File Path="build/README.md"/>
52+
</Folder>
53+
54+
<Folder Name="/src/">
55+
<Project Path="src/SourceGit.csproj" />
56+
</Folder>
57+
58+
<Folder Name="/files/">
59+
<File Path=".editconfig"/>
60+
<File Path=".gitattributes"/>
61+
<File Path=".gitignore"/>
62+
<File Path=".issuetracker"/>
63+
<File Path="global.json"/>
64+
<File Path="LICENSE"/>
65+
<File Path="README.md"/>
66+
<File Path="THIRD-PARTY-LICENSES.md"/>
67+
<File Path="TRANSLATION.md"/>
68+
</Folder>
69+
</Solution>

src/Native/Windows.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ private string FindVSSolutionFile(DirectoryInfo dir, int leftDepth)
450450
var files = dir.GetFiles();
451451
foreach (var f in files)
452452
{
453-
if (f.Name.EndsWith(".sln", StringComparison.OrdinalIgnoreCase))
453+
if (f.Name.EndsWith(".slnx", StringComparison.OrdinalIgnoreCase) ||
454+
f.Name.EndsWith(".sln", StringComparison.OrdinalIgnoreCase))
454455
return f.FullName;
455456
}
456457

0 commit comments

Comments
 (0)