Activities of "learnabp"

  • ABP Framework version: 4.0.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:

API are not automatically generated

  • Steps to reproduce the issue:
  1. Run abp add-module Acme.Software.SimpleTask --new --add-to-solution-file
  2. Create a ITaskAppService with a simple method GetAll as follows under the folder call Tasks in the Application.Contract Project in the modules folder
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Acme.Software.SimpleTask.Tasks
{
    public interface ITaskAppService : IApplicationService
    {
        
        Task<ListResultDto<TaskDto>> GetAllAsync(GetAllTasksInput input);

    }
}
  1. Create the TaskAppService as follows under the folder called Tasks in the Application.Contract Project in the Modules Folder
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;

namespace Acme.Software.SimpleTask.Tasks
{
    public class TaskAppService : SimpleTaskAppService, ITaskAppService
    {
        private readonly IRepository<Task, Guid> _taskRepository;

        public TaskAppService(IRepository<Task, Guid> taskRepository)
        {

            _taskRepository = taskRepository;

        }

        public async Task<ListResultDto<TaskDto>> GetAllAsync(GetAllTasksInput input)
        {

            var tasks = await AsyncExecuter.ToListAsync(_taskRepository
                                .WhereIf(input.State.HasValue, t => t.State == input.State.Value)
                                .OrderByDescending(t => t.CreationTime)
                                );

            return new ListResultDto<TaskDto>(ObjectMapper.Map<List<Task>, List<TaskDto>>(tasks));
                                
        }
    }
}
  1. Run the project and navigate to Swager can't see the GetAll API

Solution Structure is as follws

  • ABP Framework version: v4.1.0-rc.2
  • UI type: MVC
  • DB provider: ** EF Core**
  • Tiered (MVC) or Identity Server Seperated (Angular): No
  • Exception message and stack trace:

[01:42:45 ERR] Error occured while adding the module Volo.AuditLogging.Uiwith source-code to the solution "431ca24a-8d94-4fbf-b22b-810fb47d684b".. System.ArgumentNullException: Value cannot be null. (Parameter 'path') at System.IO.Path.GetFullPath(String path) at System.IO.DirectoryInfo..ctor(String path) at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.RemoveProjectByPostFix(ModuleWithMastersInfo module, String moduleSolutionFile, String targetFolder, String postFix) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 209 at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.RemoveUnnecessaryProjectsAsync(String solutionDirectory, ModuleWithMastersInfo module, String[] projectFiles) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 167 at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.AddAsync(String solutionFile, String moduleName, String startupProject, String version, Boolean skipDbMigrations, Boolean withSourceCode, Boolean addSourceCodeToSolutionFile, Boolean newTemplate, Boolean newProTemplate) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 102 at Volo.Abp.Cli.Commands.AddModuleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\AddModuleCommand.cs:line 59 at Volo.Abp.Suite.Controllers.AbpSuiteController.AddModuleAsync(AddModuleInput input)

  • Steps to reproduce the issue:
  1. Run abp suite from camond line
  2. Create new solution using the abp suite
  3. Navigate to Modules
  4. Click on Replace packages with source code under the Audit Logging Module
  5. Get the above specified error
  • ABP Framework version: v3.3.0

  • UI type: MVC

  • Tiered (MVC) or Identity Server Seperated (Angular): no

  • Exception message and stack trace:

  • Steps to reproduce the issue:

    1. Create new Solution in Abp Suite UI
    2. Go to modules and try and add payment module
    3. it will give you an error saying the project folder does exisit as it is looking at a different folder

the folder which the solution is in is actually C:\Amazing\Projects\3-3-0\Amazing.BookStore

Showing 41 to 43 of 43 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11