Browse Source

Merge pull request #25628 from abpframework/auto-merge/rel-10-4/4653

Merge branch rel-10.5 with rel-10.4
pull/25629/head
Volosoft Agent 4 months ago
committed by GitHub
parent
commit
80121c77c6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      docs/en/cli/index.md
  2. 13
      docs/en/studio/release-notes.md
  3. 5
      docs/en/studio/version-mapping.md
  4. 1
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/AbpCliCoreModule.cs
  5. 57
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CleanLogsCommand.cs

11
docs/en/cli/index.md

@ -45,6 +45,7 @@ Here is the list of all available commands before explaining their details:
- [new-package](../cli#new-package): Generates a new package based on the given template. - [new-package](../cli#new-package): Generates a new package based on the given template.
- [update](../cli#update): Automatically updates all ABP related NuGet and NPM packages in a solution. - [update](../cli#update): Automatically updates all ABP related NuGet and NPM packages in a solution.
- [clean](../cli#clean): Deletes all `BIN` and `OBJ` folders in the current folder. - [clean](../cli#clean): Deletes all `BIN` and `OBJ` folders in the current folder.
- [clean-logs](../cli#clean-logs): Delete all `*logs.txt` files in the current folder and its subfolders.
- [add-package](../cli#add-package): Adds an ABP package to a project. - [add-package](../cli#add-package): Adds an ABP package to a project.
- [add-package-ref](../cli#add-package-ref): Adds package to given project. - [add-package-ref](../cli#add-package-ref): Adds package to given project.
- [install-module](../cli#install-module): Adds a [multi-package application module](../modules/index.md) to a given module. - [install-module](../cli#install-module): Adds a [multi-package application module](../modules/index.md) to a given module.
@ -476,6 +477,16 @@ Usage:
abp clean abp clean
``` ```
### clean-logs
Delete all `*logs.txt` files in the current folder and its subfolders.
Usage:
```bash
abp clean-logs
```
### add-package ### add-package
Adds an ABP package to a project by, Adds an ABP package to a project by,

13
docs/en/studio/release-notes.md

@ -9,7 +9,18 @@
This document contains **brief release notes** for each ABP Studio release. Release notes only include **major features** and **visible enhancements**. Therefore, they don't include all the development done in the related version. This document contains **brief release notes** for each ABP Studio release. Release notes only include **major features** and **visible enhancements**. Therefore, they don't include all the development done in the related version.
## 3.0.3 (2026-05-20) Latest ## 3.0.4 (2026-06-03) Latest
* Blazor UI Selector: Added a built-in choice between MudBlazor and Blazorise for Blazor solution templates
* React Native Updates: Upgraded Expo to the latest version, improved keyboard handling, and ensured UI consistency
* Linux Support Enhancements: Improved system tool detection, terminal launching, and added full Linux publish/runtime support
* React Admin Security: Secured the React Admin Console sidebar menu by enforcing permission-based access gating
* Mobile Documentation: Added comprehensive setup guides and rules for React Native mobile templates
* Angular Microservice Fix: Resolved missing audit logging configurations and imports in microservice templates
* Modern Templates Licensing: Updated Modern architecture templates to be available exclusively for commercial/paid tiers
* Code & UI Stability: Fixed TypeScript compilation errors in React templates and resolved various minor system bugs
## 3.0.3 (2026-05-20)
* AI Agent Upgrades: Added browser automation tools and overall performance fixes * AI Agent Upgrades: Added browser automation tools and overall performance fixes
* React Language Fix: Fixed language and localization settings being ignored in React templates * React Language Fix: Fixed language and localization settings being ignored in React templates

5
docs/en/studio/version-mapping.md

@ -9,9 +9,10 @@
This document provides a general overview of the relationship between various versions of ABP Studio and the ABP version of the [ABP Solution Templates](../solution-templates/index.md) used when generating a new solution. Each version of ABP Studio is configured to create solutions with a specific ABP version. However, once a solution is created, you can easily update it to the latest version of ABP via ABP Studio or [ABP CLI](../cli/index.md#update). This document provides a general overview of the relationship between various versions of ABP Studio and the ABP version of the [ABP Solution Templates](../solution-templates/index.md) used when generating a new solution. Each version of ABP Studio is configured to create solutions with a specific ABP version. However, once a solution is created, you can easily update it to the latest version of ABP via ABP Studio or [ABP CLI](../cli/index.md#update).
| **ABP Studio Version** | **ABP Version of Startup Template** | | **ABP Studio Version** | **ABP Version of Startup Template** |
|------------------------|---------------------------| |------------------------|---------------------------|
| 3.0.3 | 10.4.0 | | 3.0.4 | 10.4.1 |
| 3.0.3 | 10.4.0 |
| 2.2.7 - 3.0.2 | 10.3.0 | | 2.2.7 - 3.0.2 | 10.3.0 |
| 2.2.5 - 2.2.6 | 10.2.0 | | 2.2.5 - 2.2.6 | 10.2.0 |
| 2.2.2 - 2.2.4 | 10.1.1 | | 2.2.2 - 2.2.4 | 10.1.1 |

1
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/AbpCliCoreModule.cs

@ -75,6 +75,7 @@ public class AbpCliCoreModule : AbpModule
options.Commands[CreateMigrationAndRunMigratorCommand.Name] = typeof(CreateMigrationAndRunMigratorCommand); options.Commands[CreateMigrationAndRunMigratorCommand.Name] = typeof(CreateMigrationAndRunMigratorCommand);
options.Commands[InstallLibsCommand.Name] = typeof(InstallLibsCommand); options.Commands[InstallLibsCommand.Name] = typeof(InstallLibsCommand);
options.Commands[CleanCommand.Name] = typeof(CleanCommand); options.Commands[CleanCommand.Name] = typeof(CleanCommand);
options.Commands[CleanLogsCommand.Name] = typeof(CleanLogsCommand);
options.Commands[CliCommand.Name] = typeof(CliCommand); options.Commands[CliCommand.Name] = typeof(CliCommand);
options.Commands[ClearDownloadCacheCommand.Name] = typeof(ClearDownloadCacheCommand); options.Commands[ClearDownloadCacheCommand.Name] = typeof(ClearDownloadCacheCommand);
options.Commands[RecreateInitialMigrationCommand.Name] = typeof(RecreateInitialMigrationCommand); options.Commands[RecreateInitialMigrationCommand.Name] = typeof(RecreateInitialMigrationCommand);

57
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CleanLogsCommand.cs

@ -0,0 +1,57 @@
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Volo.Abp.Cli.Args;
using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Cli.Commands;
public class CleanLogsCommand : IConsoleCommand, ITransientDependency
{
public const string Name = "clean-logs";
public ILogger<CleanCommand> Logger { get; set; }
public CleanLogsCommand(ILogger<CleanCommand> logger)
{
Logger = logger;
}
public Task ExecuteAsync(CommandLineArgs commandLineArgs)
{
var logsEntries = Directory.EnumerateDirectories(Directory.GetCurrentDirectory(), "Logs", SearchOption.AllDirectories);
Logger.LogInformation($"Removing 'Logs' files...");
foreach (var path in logsEntries)
{
var files = Directory.GetFiles(path, "*logs.txt");
foreach (var file in files)
{
Logger.LogInformation($"Deleting: {file}");
File.Delete(file);
}
}
Logger.LogInformation("Logs cleaned successfully!");
return Task.CompletedTask;
}
public string GetUsageInfo()
{
var sb = new StringBuilder();
sb.AppendLine("");
sb.AppendLine("Usage:");
sb.AppendLine(" abp clean-logs");
sb.AppendLine("");
sb.AppendLine("See the documentation for more info: https://abp.io/docs/latest/cli");
return sb.ToString();
}
public static string GetShortDescription()
{
return "Delete all *logs.txt files in the current folder and its subfolders.";
}
}
Loading…
Cancel
Save