From 6f8e0ede8a7bd88f712c66f6ed27f66c6abb7a0c 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx b/scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx index 56da33c0..f67a2b1e 100755 --- a/scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx +++ b/scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx @@ -8,11 +8,11 @@ open System.IO #load "../src/FileConventions/Library.fs" #load "../src/FileConventions/Helpers.fs" -let rootDir = Path.Combine(__SOURCE_DIRECTORY__, "..") |> DirectoryInfo +let currentDir = Directory.GetCurrentDirectory() |> DirectoryInfo let invalidFiles = Helpers.GetInvalidFiles - rootDir + currentDir "*.*proj" FileConventions.DetectAsteriskInPackageReferenceItems