From ac8d77a1602c580ba00129f1605708af953efcb3 Mon Sep 17 00:00:00 2001 From: Anam Navied Date: Thu, 19 Dec 2024 15:28:29 -0500 Subject: [PATCH] remove unused code --- src/code/PublishHelper.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/code/PublishHelper.cs b/src/code/PublishHelper.cs index 20b7261fd..6509d4e2f 100644 --- a/src/code/PublishHelper.cs +++ b/src/code/PublishHelper.cs @@ -1348,20 +1348,15 @@ internal Hashtable GetMetadataFromNupkg(string copiedNupkgPath, string packageNa errRecord = null; // in temp directory create an "extract" folder to which we'll copy .nupkg to, extract contents, etc. - string nupkgDirPath = Directory.GetParent(copiedNupkgPath).FullName; //someGuid/nupkg.myPkg.nupkg -> /someGuid/nupkg + string nupkgDirPath = Directory.GetParent(copiedNupkgPath).FullName; //someGuid/nupkg/myPkg.nupkg -> /someGuid/nupkg string tempPath = Directory.GetParent(nupkgDirPath).FullName; // someGuid - var extractPath = System.IO.Path.Combine(tempPath, "extract"); - string packageFullName = System.IO.Path.GetFileName(copiedNupkgPath); + var extractPath = System.IO.Path.Combine(tempPath, "extract"); // someGuid/extract try { var dir = Directory.CreateDirectory(extractPath); dir.Attributes &= ~FileAttributes.ReadOnly; - // copy .nupkg - // string destNupkgPath = Path.Combine(tempDiscoveryPath, packageFullName); - // File.Copy(packagePath, destNupkgPath); - // change extension to .zip string zipFilePath = System.IO.Path.ChangeExtension(copiedNupkgPath, ".zip"); File.Move(copiedNupkgPath, zipFilePath);