Skip to content

Commit e572d37

Browse files
authored
[automated] Merge branch 'release/9.0.3xx' => 'main' (#47559)
2 parents a71cd17 + f0bf98b commit e572d37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public FilePath FindFirst(bool createIfNotFound = false)
197197
/*
198198
The --create-manifest-if-needed will use the following priority to choose the folder where the tool manifest goes:
199199
1. Walk up the directory tree searching for one that has a.git subfolder
200-
2. Walk up the directory tree searching for one that has a .sln/git file in it
200+
2. Walk up the directory tree searching for one that has a .sln(x)/git file in it
201201
3. Use the current working directory
202202
*/
203203
private DirectoryPath GetDirectoryToCreateToolManifest()
@@ -213,7 +213,7 @@ private DirectoryPath GetDirectoryToCreateToolManifest()
213213
if (currentSearchDirectory.Value.Value != null)
214214
{
215215
if (_fileSystem.Directory.EnumerateFiles(currentSearchDirectory.Value.Value)
216-
.Any(filename => Path.GetExtension(filename).Equals(".sln", StringComparison.OrdinalIgnoreCase))
216+
.Any(filename => Path.GetExtension(filename).Equals(".sln", StringComparison.OrdinalIgnoreCase) || Path.GetExtension(filename).Equals(".slnx", StringComparison.OrdinalIgnoreCase))
217217
|| _fileSystem.File.Exists(currentSearchDirectory.Value.WithFile(".git").Value))
218218

219219
{

0 commit comments

Comments
 (0)