From 238c2ce8140d70795213f4bdefe406b71cfe3ea2 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 12 Nov 2024 09:49:13 +0300 Subject: [PATCH] Check if folder exist in NugetPackageToLocalReferenceConverter --- .../NugetPackageToLocalReferenceConverter.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs index bb9360b550e..6379b5e83b7 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs @@ -142,6 +142,11 @@ public List GetNugetPackages(ModuleWithMastersIn private static string[] GetProjectFilesUnder(string path) { + if (!Directory.Exists(path)) + { + return []; + } + return Directory.GetFiles(path, "*.csproj", SearchOption.AllDirectories);