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);