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 988b9aacc1..667b95b444 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 @@ -141,6 +141,11 @@ public class NugetPackageToLocalReferenceConverter : ITransientDependency private static string[] GetProjectFilesUnder(string path) { + if (!Directory.Exists(path)) + { + return []; + } + return Directory.GetFiles(path, "*.csproj", SearchOption.AllDirectories);