From 13ffa49c7d5e485c4733db964b639d16641d8022 Mon Sep 17 00:00:00 2001 From: Paul Higinbotham Date: Mon, 8 Nov 2021 16:05:12 -0800 Subject: [PATCH] Fix Publish-PSResource -DestinationPath test failure --- src/code/PublishPSResource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/code/PublishPSResource.cs b/src/code/PublishPSResource.cs index af2b5c690..d43babfef 100644 --- a/src/code/PublishPSResource.cs +++ b/src/code/PublishPSResource.cs @@ -393,7 +393,7 @@ protected override void ProcessRecord() try { var nupkgName = _pkgName + "." + _pkgVersion.ToNormalizedString() + ".nupkg"; - Utils.MoveFiles(System.IO.Path.Combine(outputNupkgDir, nupkgName), System.IO.Path.Combine(_destinationPath, nupkgName)); + File.Copy(System.IO.Path.Combine(outputNupkgDir, nupkgName), System.IO.Path.Combine(_destinationPath, nupkgName)); } catch (Exception e) { var message = string.Format("Error moving .nupkg into destination path '{0}' due to: '{1}'.", _destinationPath, e.Message);