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
parent
commit
3f95340b16
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs
  2. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Version/PackageVersionCheckerService.cs

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.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)
{

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Version/PackageVersionCheckerService.cs

@ -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();
}

Loading…
Cancel
Save