Browse Source

fixes #3711

pull/3719/head
Alper Ebicoglu 6 years ago
parent
commit
466df04522
  1. 9
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs

9
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";

Loading…
Cancel
Save