From 92e1ef8215f8d20bf2bb807385d53af0c435dff8 Mon Sep 17 00:00:00 2001 From: webwarrior Date: Tue, 5 Nov 2024 10:24:29 +0100 Subject: [PATCH] scripts: fix unpinnedNugetPackage... script Use working dir instead of script's parent directory in unpinnedNugetPackageReferenceVersionsInProjects.fsx to search for projects as it is intended behavior. --- scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx b/scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx index b2e9fcd4..7d3a73f0 100755 --- a/scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx +++ b/scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx @@ -10,10 +10,13 @@ open System.IO #load "../src/FileConventions/Helpers.fs" let rootDir = Path.Combine(__SOURCE_DIRECTORY__, "..") |> DirectoryInfo +let currentDir = Directory.GetCurrentDirectory() |> DirectoryInfo + +let targetDir = Helpers.PreferLessDeeplyNestedDir currentDir rootDir let invalidFiles = Helpers.GetInvalidFiles - rootDir + targetDir "*.*proj" FileConventions.DetectAsteriskInPackageReferenceItems