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