Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 50b2f02

Browse files
committed
Fix .nuget folder not being checked for a NuGet.Config file.
1 parent 70fd933 commit 50b2f02

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/AddIns/Misc/PackageManagement/Project/Src/SettingsProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ string GetSolutionDirectory()
4545
{
4646
ISolution solution = projectService.OpenSolution;
4747
if (solution != null) {
48-
return solution.Directory;
48+
return Path.Combine(solution.Directory, ".nuget");
4949
}
5050
return null;
5151
}

src/AddIns/Misc/PackageManagement/Test/Src/SettingsProviderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ public void LoadSettings_NoSolutionOpen_NullFileSystemAndNullConfigFileAndNullMa
6666
}
6767

6868
[Test]
69-
public void LoadSettings_SolutionOpen_FileSystemWithRootSetToSolutionDirectoryUsedToLoadSettings()
69+
public void LoadSettings_SolutionOpen_FileSystemWithRootSetToSolutionDotNuGetDirectoryUsedToLoadSettings()
7070
{
7171
string fileName = @"d:\projects\MyProject\MyProject.sln";
7272
OpenSolution(fileName);
7373

7474
ISettings settings = settingsProvider.LoadSettings();
7575

76-
Assert.AreEqual(@"d:\projects\MyProject", fileSystemUsedToLoadSettings.Root);
76+
Assert.AreEqual(@"d:\projects\MyProject\.nuget", fileSystemUsedToLoadSettings.Root);
7777
Assert.AreEqual(fakeSettings, settings);
7878
}
7979
}

0 commit comments

Comments
 (0)