From e83c08b06fc76f67e703527055f9b50e7dff44ec Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Sat, 6 Nov 2021 01:55:16 +0200 Subject: [PATCH] Use a more correct path --- cake/msbuild.cake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cake/msbuild.cake b/cake/msbuild.cake index 84706ed3..8ce4dc83 100644 --- a/cake/msbuild.cake +++ b/cake/msbuild.cake @@ -1,5 +1,6 @@ using System.Xml.Linq; +FilePath NUGET_CONFIG_PATH = MakeAbsolute(ROOT_PATH.CombineWithFilePath("nuget.config")); DirectoryPath PACKAGE_CACHE_PATH = MakeAbsolute(ROOT_PATH.Combine("externals/package_cache")); DirectoryPath OUTPUT_NUGETS_PATH = MakeAbsolute(ROOT_PATH.Combine("output/nugets")); DirectoryPath OUTPUT_SPECIAL_NUGETS_PATH = MakeAbsolute(ROOT_PATH.Combine("output/nugets-special")); @@ -12,7 +13,7 @@ var NUGETS_SOURCES = new [] { string[] GetNuGetSources() { // load all the sources from nuget.config - var xdoc = XDocument.Load("nuget.config"); + var xdoc = XDocument.Load(NUGET_CONFIG_PATH.FullPath); var xmlns = xdoc.Root.Name.Namespace; var adds = xdoc.Elements(xmlns + "configuration") .Elements(xmlns + "packageSources")