|
|
|
@ -53,9 +53,6 @@ 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 solution = commandLineArgs.Options.GetOrNull(Options.SolutionName.Short, Options.SolutionName.Long); |
|
|
|
if (solution.IsNullOrWhiteSpace()) |
|
|
|
@ -69,7 +66,7 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
{ |
|
|
|
var solutionName = Path.GetFileName(solution).RemovePostFix(".sln"); |
|
|
|
|
|
|
|
await _nugetPackagesVersionUpdater.UpdateSolutionAsync(solution, includePreviews, checkAll: checkAll); |
|
|
|
await _nugetPackagesVersionUpdater.UpdateSolutionAsync(solution, checkAll: checkAll); |
|
|
|
|
|
|
|
Logger.LogInformation($"Volo packages are updated in {solutionName} solution."); |
|
|
|
return; |
|
|
|
@ -81,7 +78,7 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
{ |
|
|
|
var projectName = Path.GetFileName(project).RemovePostFix(".csproj"); |
|
|
|
|
|
|
|
await _nugetPackagesVersionUpdater.UpdateProjectAsync(project, includePreviews, checkAll: checkAll); |
|
|
|
await _nugetPackagesVersionUpdater.UpdateProjectAsync(project, checkAll: checkAll); |
|
|
|
|
|
|
|
Logger.LogInformation($"Volo packages are updated in {projectName} project."); |
|
|
|
return; |
|
|
|
@ -141,12 +138,6 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
public const string Long = "solution-name"; |
|
|
|
} |
|
|
|
|
|
|
|
public static class IncludePreviews |
|
|
|
{ |
|
|
|
public const string Short = "p"; |
|
|
|
public const string Long = "include-previews"; |
|
|
|
} |
|
|
|
|
|
|
|
public static class Packages |
|
|
|
{ |
|
|
|
public const string Npm = "npm"; |
|
|
|
|