From 466df04522e0bcaee0de66b2b714b06b7dc291c2 Mon Sep 17 00:00:00 2001 From: Alper Ebicoglu Date: Thu, 23 Apr 2020 01:12:22 +0300 Subject: [PATCH] fixes #3711 --- .../Volo/Abp/Cli/Commands/UpdateCommand.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs index c44f77b749..e6a2319c72 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs @@ -53,10 +53,11 @@ namespace Volo.Abp.Cli.Commands private async Task UpdateNugetPackages(CommandLineArgs commandLineArgs, string directory) { - var includePreviews = - commandLineArgs.Options.GetOrNull(Options.IncludePreviews.Short, Options.IncludePreviews.Long) != null; + var includePreviews = commandLineArgs + .Options + .GetOrNull(Options.IncludePreviews.Short, Options.IncludePreviews.Long) != null; - var solution = Directory.GetFiles(directory, "*.sln").FirstOrDefault(); + var solution = Directory.GetFiles(directory, "*.sln", SearchOption.AllDirectories).FirstOrDefault(); if (solution != null) { @@ -123,7 +124,7 @@ namespace Volo.Abp.Cli.Commands public const string Short = "sp"; public const string Long = "solution-path"; } - + public static class IncludePreviews { public const string Short = "p";