Browse Source
Merge pull request #21312 from abpframework/fix-NugetPackageToLocalReferenceConverter
Check if folder exist in NugetPackageToLocalReferenceConverter
pull/21313/head
Enis Necipoglu
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
0 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs
|
|
@ -142,6 +142,11 @@ public class NugetPackageToLocalReferenceConverter : ITransientDependency |
|
|
|
|
|
|
|
|
private static string[] GetProjectFilesUnder(string path) |
|
|
private static string[] GetProjectFilesUnder(string path) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (!Directory.Exists(path)) |
|
|
|
|
|
{ |
|
|
|
|
|
return []; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return Directory.GetFiles(path, |
|
|
return Directory.GetFiles(path, |
|
|
"*.csproj", |
|
|
"*.csproj", |
|
|
SearchOption.AllDirectories); |
|
|
SearchOption.AllDirectories); |
|
|
|