Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error in AspNetZeroRadTool for Mac #11573


User avatar
0
asbbh created

I am using this document https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Development-Guide-Rad-Tool-Mac-Linux for running AspNetZeroRadTool on Mac OS Ventura (13.3.1) to generate a scaffolding for an entity (attached) on Type 'ASP.NET CORE & Angular', Framework '.NET 7.0' and Version 'v12.1.0'

Most of the part is executed but throws an error

PS /Volumes/Projects/aspZero/SchoolAut0materv12.1.1/aspnet-core/AspNetZeroRadTool> dotnet AspNetZeroRadTool.dll Core.AcademicYear.AcademicYear.json -> SchoolAut0mater.Application.Shared\Core\AcademicYear\IAcademicYearsAppService.cs is being generated. -> SchoolAut0mater.Core\Core\AcademicYear\AcademicYear.cs is being generated. -> SchoolAut0mater.Application\Core\AcademicYear\AcademicYearsAppService.cs is being generated. -> SchoolAut0mater.Core.Shared\Core\AcademicYear\AcademicYearConsts.cs is being generated. -> SchoolAut0mater.Application.Shared\Core\AcademicYear\Dtos\GetAllForLookupTableInput.cs is being generated. -> SchoolAut0mater.Application.Shared\Core\AcademicYear\Dtos\CreateOrEditAcademicYearDto.cs is being generated. -> SchoolAut0mater.Application.Shared\Core\AcademicYear\Dtos\GetAcademicYearForViewDto.cs is being generated. -> SchoolAut0mater.Application.Shared\Core\AcademicYear\Dtos\GetAllAcademicYearsInput.cs is being generated. -> SchoolAut0mater.Application.Shared\Core\AcademicYear\Dtos\GetAcademicYearForEditOutput.cs is being generated. -> SchoolAut0mater.Application.Shared\Core\AcademicYear\Dtos\AcademicYearDto.cs is being generated. -> \..\src\SchoolAut0mater.Core\Authorization\App2Permissions.cs is being modified. -> \..\src\SchoolAut0mater.Core\Authorization\App2AuthorizationProvider.cs is being modified. -> \..\src\SchoolAut0mater.EntityFrameworkCore\EntityFrameworkCore\SchoolAut0materDbContext.cs is being modified. -> \..\src\SchoolAut0mater.Application\Custom2DtoMapper.cs is being modified. -> app\main\academicYear\academicYears\academicYears.component.ts is being generated. -> app\main\academicYear\academicYears\view-academicYear.component.ts is being generated. -> app\main\academicYear\academicYears\academicYears.component.html is being generated. -> app\main\academicYear\academicYears\academicYear.module.ts is being generated. -> app\main\academicYear\academicYears\create-or-edit-academicYear.component.ts is being generated. -> app\main\academicYear\academicYears\academicYear-routing.module.ts is being generated. -> app\main\academicYear\academicYears\view-academicYear.component.html is being generated. -> app\main\academicYear\academicYears\create-or-edit-academicYear.component.html is being generated. -> \..\..\angular\src\app\main\main-routing.module.ts is being modified. -> \..\..\angular\src\app\shared\layout\nav\app-navigation.service.ts is being modified. -> \..\..\angular\src\shared\service-proxies\service-proxy.module.ts is being modified. -> \..\src\SchoolAut0mater.Core\Localization\SchoolAut0mater\SchoolAut0mater.xml is being modified. -> Formatting generated client side files. Could not format file /Volumes/Projects/aspZero/SchoolAut0materv12.1.1/angular/src/app/main/academicYear/academicYears/academicYears.component.ts System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'cmd.exe' with working directory '/Volumes/Projects/aspZero/SchoolAut0materv12.1.1/aspnet-core/AspNetZeroRadTool'. No such file or directory at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at AspNetZeroRadTool.FileWizards.CodeFormatting.ExternalCodeFormatter.RunFormatCommandInPath(String path, String command)

Formatting generated client-side files. Could not format file /Volumes/Projects/aspZero/SchoolAut0materv12.1.1/angular/src/app/main/academicYear/academicYears/academicYears.component.ts System.ComponentModel.Win32Exception (2): An error occurred trying to start the process 'cmd.exe' with working directory '/Volumes/Projects/aspZero/SchoolAut0materv12.1.1/aspnet-core/AspNetZeroRadTool'. No such file or directory

plz help

====================Core.AcademicYear.AcademicYear.json====================

{
  "IsRegenerate": false,
  "MenuPosition": "main",
  "RelativeNamespace": "Core.AcademicYear",
  "EntityName": "AcademicYear",
  "EntityNamePlural": "AcademicYears",
  "TableName": "AcademicYears",
  "PrimaryKeyType": "int",
  "BaseClass": "CreationAuditedEntity",
  "EntityHistory": false,
  "AutoMigration": false,
  "UpdateDatabase": false,
  "CreateUserInterface": true,
  "CreateViewOnly": true,
  "CreateExcelExport": false,
  "IsNonModalCRUDPage": true,
  "IsMasterDetailPage": false,
  "PagePermission": {
    "Host": false,
    "Tenant": true
  },
  "Properties": [
    {
      "Name": "Code",
      "Type": "int",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": true,
      "Nullable": false,
      "Regex": "",
      "UserInterface": {
        "AdvancedFilter": true,
        "List": true,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "Name",
      "Type": "string",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": false,
      "Regex": "",
      "UserInterface": {
        "AdvancedFilter": false,
        "List": true,
        "CreateOrUpdate": false
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "Terms",
      "Type": "string",
      "MaxLength": 1000,
      "MinLength": 0,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": true,
      "Regex": "",
      "UserInterface": {
        "AdvancedFilter": true,
        "List": true,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "StartDate",
      "Type": "DateTime",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": true,
      "Regex": "",
      "UserInterface": {
        "AdvancedFilter": false,
        "List": true,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "EndDate",
      "Type": "DateTime",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": false,
      "Nullable": true,
      "Regex": "",
      "UserInterface": {
        "AdvancedFilter": false,
        "List": true,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "IsExpired",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": true,
      "Nullable": false,
      "Regex": "",
      "UserInterface": {
        "AdvancedFilter": false,
        "List": true,
        "CreateOrUpdate": false
      },
      "ViewType": null,
      "AdditionalData": {}
    },
    {
      "Name": "IsActive",
      "Type": "bool",
      "MaxLength": -1,
      "MinLength": -1,
      "Range": {
        "IsRangeSet": false,
        "MinimumValue": 0.0,
        "MaximumValue": 0.0
      },
      "Required": true,
      "Nullable": false,
      "Regex": "",
      "UserInterface": {
        "AdvancedFilter": true,
        "List": true,
        "CreateOrUpdate": true
      },
      "ViewType": null,
      "AdditionalData": {}
    }
  ],
  "NavigationProperties": [],
  "NavigationPropertyOneToManyTables": [],
  "EnumDefinitions": [],
  "DbContext": null
}

1 Answer(s)