From fd02b8b2f9fdcc93ca71388bbd900d6637ae764e Mon Sep 17 00:00:00 2001 From: Lutz Roeder Date: Wed, 1 Feb 2023 17:17:42 -0800 Subject: [PATCH] Fix Download warning (#13067) --- eng/cake/dotnet.cake | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/eng/cake/dotnet.cake b/eng/cake/dotnet.cake index 8f583288d0d5..f3695e719aa3 100644 --- a/eng/cake/dotnet.cake +++ b/eng/cake/dotnet.cake @@ -315,24 +315,6 @@ Task("dotnet-pack-library-packs") var destDir = $"./artifacts/library-packs"; EnsureDirectoryExists(destDir); CleanDirectories(destDir); - - void Download(string id, string version, params string[] sources) - { - version = XmlPeek("./eng/Versions.props", "/Project/PropertyGroup/" + version); - - NuGetInstall(id, new NuGetInstallSettings - { - Version = version, - ExcludeVersion = false, - OutputDirectory = tempDir, - Source = sources, - }); - - CopyFiles($"{tempDir}/**/" + id + "." + version + ".nupkg", destDir, false); - CleanDirectories(tempDir); - } - - // Download("PACKAGE_ID", "VERSION_VARIABLE", "SOURCE_URL"); }); Task("dotnet-pack-docs")