From dd849be98913972345db723186749a1a738660e1 Mon Sep 17 00:00:00 2001 From: indigo-san Date: Wed, 14 Feb 2024 23:16:35 +0900 Subject: [PATCH] =?UTF-8?q?`NuGet.Configuration.Settings`=E3=81=AB?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E5=90=8D=E3=82=92=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Beutl.Api/Services/PackageInstaller.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Beutl.Api/Services/PackageInstaller.cs b/src/Beutl.Api/Services/PackageInstaller.cs index cad56c5ab..0baf2bb09 100644 --- a/src/Beutl.Api/Services/PackageInstaller.cs +++ b/src/Beutl.Api/Services/PackageInstaller.cs @@ -57,7 +57,8 @@ public PackageInstaller(HttpClient httpClient, InstalledPackageRepository instal _httpClient = httpClient; _installedPackageRepository = installedPackageRepository; - string configPath = Path.Combine(Helper.AppRoot, "nuget.config"); + const string ConfigFileName = "nuget.config"; + string configPath = Path.Combine(Helper.AppRoot, ConfigFileName); if (File.Exists(configPath)) { using (StreamReader reader = File.OpenText(configPath)) @@ -84,7 +85,7 @@ public PackageInstaller(HttpClient httpClient, InstalledPackageRepository instal LoadSettings: //_settings = Settings.LoadDefaultSettings(Helper.AppRoot); - _settings = new Settings(Helper.AppRoot); + _settings = new Settings(Helper.AppRoot, ConfigFileName); _packageSourceProvider = new PackageSourceProvider(_settings); _sourceRepositoryProvider = new SourceRepositoryProvider(_packageSourceProvider, Repository.Provider.GetCoreV3());