Open Closed

ABP Suite issue #588


User avatar
0
sing.leung@cpy.com.hk created

2 issues on ABP Suite (app template, angular, mongodb, not tiered)

A. Could not find file ...\angular\projects\source-code-requirements\package.json (the solution can still run) B. "Replace packages with source code" for Saas or Language Management causes build failure on Tests projects

  • ABP Framework version: v3.3.1
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:

A. Could not find file ...\angular\projects\source-code-requirements\package.json

[09:57:05 ERR] Error occured while adding the module for module name: Volo.Account.Pro, with-source-code: True, to the solution: CPY.ESAP - System.IO.FileNotFoundException: Could not find file 'C:\Projects\abp\CPY.ESAP\angular\projects\source-code-requirements\package.json'. File name: 'C:\Projects\abp\CPY.ESAP\angular\projects\source-code-requirements\package.json' at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize) at System.IO.File.InternalReadAllText(String path, Encoding encoding) at Volo.Abp.Cli.ProjectModification.AngularModuleSourceCodeAdder.GetProjectPackageNameAsync(String angularProjectsPath, String project) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\AngularModuleSourceCodeAdder.cs:line 117 at Volo.Abp.Cli.ProjectModification.AngularModuleSourceCodeAdder.AddPathsToTsConfigAsync(String angularPath, String angularProjectsPath, List`1 projects) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\AngularModuleSourceCodeAdder.cs:line 93 at Volo.Abp.Cli.ProjectModification.AngularModuleSourceCodeAdder.AddAsync(String solutionFilePath, String angularPath) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\AngularModuleSourceCodeAdder.cs:line 30 at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.AddAngularSourceCode(String modulesFolderInSolution, String solutionFilePath) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 186 at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.AddAsync(String solutionFile, String moduleName, String startupProject, String version, Boolean skipDbMigrations, Boolean withSourceCode, Boolean addSourceCodeToSolutionFile) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 99 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 53 at Volo.Abp.Suite.Controllers.AbpSuiteController.AddModuleAsync(AddModuleInput input)

B. "Replace packages with source code" for Saas and Language Management causes build failure on Tests projects

Severity Code Description Project File Line Suppression State Error NU1104 Unable to find project 'C:\Projects\abp\Test2\aspnet-core\modules\Volo.Saas\src\Volo.Saas.EntityFrameworkCore\Volo.Saas.EntityFrameworkCore.csproj'. Check that the project reference is valid and that the project file exists. Volo.Saas.EntityFrameworkCore.Tests C:\Projects\abp\Test2\aspnet-core\modules\Volo.Saas\test\Volo.Saas.EntityFrameworkCore.Tests\Volo.Saas.EntityFrameworkCore.Tests.csproj 1 Error NU1104 Unable to find project 'C:\Projects\abp\Test2\aspnet-core\modules\Volo.Saas\src\Volo.Saas.EntityFrameworkCore\Volo.Saas.EntityFrameworkCore.csproj'. Check that the project reference is valid and that the project file exists. Volo.Saas.Tenant.Application.Tests C:\Projects\abp\Test2\aspnet-core\modules\Volo.Saas\test\Volo.Saas.Tenant.Application.Tests\Volo.Saas.Tenant.Application.Tests.csproj 1 Error NU1104 Unable to find project 'C:\Projects\abp\Test2\aspnet-core\modules\Volo.Saas\src\Volo.Saas.EntityFrameworkCore\Volo.Saas.EntityFrameworkCore.csproj'. Check that the project reference is valid and that the project file exists. Volo.Saas.Domain.Tests C:\Projects\abp\Test2\aspnet-core\modules\Volo.Saas\test\Volo.Saas.Domain.Tests\Volo.Saas.Domain.Tests.csproj 1 Error NU1104 Unable to find project 'C:\Projects\abp\Test2\aspnet-core\modules\Volo.Saas\src\Volo.Saas.EntityFrameworkCore\Volo.Saas.EntityFrameworkCore.csproj'. Check that the project reference is valid and that the project file exists. Volo.Saas.Host.Application.Tests C:\Projects\abp\Test2\aspnet-core\modules\Volo.Saas\test\Volo.Saas.Host.Application.Tests\Volo.Saas.Host.Application.Tests.csproj 1 Error NU1104 Unable to find project 'C:\Projects\abp\Test2\aspnet-core\modules\Volo.LanguageManagement\src\Volo.Abp.LanguageManagement.EntityFrameworkCore\Volo.Abp.LanguageManagement.EntityFrameworkCore.csproj'. Check that the project reference is valid and that the project file exists. Volo.Abp.LanguageManagement.EntityFrameworkCore.Tests C:\Projects\abp\Test2\aspnet-core\modules\Volo.LanguageManagement\test\Volo.Abp.LanguageManagement.EntityFrameworkCore.Tests\Volo.Abp.LanguageManagement.EntityFrameworkCore.Tests.csproj 1 Error NU1104 Unable to find project 'C:\Projects\abp\Test2\aspnet-core\modules\Volo.LanguageManagement\src\Volo.Abp.LanguageManagement.EntityFrameworkCore\Volo.Abp.LanguageManagement.EntityFrameworkCore.csproj'. Check that the project reference is valid and that the project file exists. Volo.Abp.LanguageManagement.Application.Tests C:\Projects\abp\Test2\aspnet-core\modules\Volo.LanguageManagement\test\Volo.Abp.LanguageManagement.Application.Tests\Volo.Abp.LanguageManagement.Application.Tests.csproj 1 Error NU1104 Unable to find project 'C:\Projects\abp\Test2\aspnet-core\modules\Volo.LanguageManagement\src\Volo.Abp.LanguageManagement.EntityFrameworkCore\Volo.Abp.LanguageManagement.EntityFrameworkCore.csproj'. Check that the project reference is valid and that the project file exists. Volo.Abp.LanguageManagement.Domain.Tests C:\Projects\abp\Test2\aspnet-core\modules\Volo.LanguageManagement\test\Volo.Abp.LanguageManagement.Domain.Tests\Volo.Abp.LanguageManagement.Domain.Tests.csproj 1

  • Steps to reproduce the issue: A1. Create a new solution in ABP Suite (app template, angular, mongodb, not tiered) A2. Go to Modules and click "replace packages with source code" on ANY module A3. The error will not occur again for the same project

B1. Create a new solution in ABP Suite (app template, angular, mongodb, not tiered) B2. Go to Modules and click "replace packages with source code" on Saas or Language Management module


4 Answer(s)
  • User Avatar
    0
    sing.leung@cpy.com.hk created

    One more problem: I tried to setup tenant resolver for subdomain https://docs.abp.io/en/abp/latest/Multi-Tenancy#domain-subdomain-tenant-resolver

    but got compile error below: Error CS1061 'AbpTenantResolveOptions' does not contain a definition for 'AddDomainTenantResolver' and no accessible extension method 'AddDomainTenantResolver' accepting a first argument of type 'AbpTenantResolveOptions' could be found (are you missing a using directive or an assembly reference?) CPY.ESAP.HttpApi C:\Projects\abp\CPY.ESAP\aspnet-core\src\CPY.ESAP.HttpApi\ESAPHttpApiModule.cs 56 Active

    I can only access options.TenantResolvers

  • User Avatar
    0
    alper created
    Support Team Director

    is your Suite version and your ABP project version same? this is important

  • User Avatar
    0
    sing.leung@cpy.com.hk created

    The project is created directly from Suite. They are v3.3.1

  • User Avatar
    0
    alper created
    Support Team Director

    ok. I can reproduce it. the issue will be fixed in the next version (v4)

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38