Browse Source
Merge pull request #20049 from abpframework/fix-update-command-studio-
Fix update command problem related with studio packages
pull/20050/head
Yunus Emre Kalkan
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Version/PackageVersionCheckerService.cs
|
|
|
@ -84,7 +84,7 @@ public class UpdateCommand : IConsoleCommand, ITransientDependency |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var project = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.csproj").FirstOrDefault(); |
|
|
|
var project = Directory.GetFiles(directory, "*.csproj").FirstOrDefault(); |
|
|
|
|
|
|
|
if (project != null) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ public class PackageVersionCheckerService : ITransientDependency |
|
|
|
|
|
|
|
public async Task<LatestVersionInfo> GetLatestVersionOrNullAsync(string packageId, bool includeNightly = false, bool includeReleaseCandidates = false) |
|
|
|
{ |
|
|
|
if (!includeNightly && !includeReleaseCandidates && !packageId.Contains("LeptonX")) |
|
|
|
if (!includeNightly && !includeReleaseCandidates && !packageId.Contains("LeptonX") && !packageId.StartsWith("Volo.Abp.Studio.")) |
|
|
|
{ |
|
|
|
return await GetLatestStableVersionFromGithubAsync(); |
|
|
|
} |
|
|
|
|