Project

Power Tools Configuration

The Power Tools usually does not need a manual config. But sometimes (for example when you change the file locations) you may need to change some config so that Power Tools can work as expected.

Config.json file is located in *YourAppFolder/aspnet-core/AspNetZeroRadTool

Config.json:

{
  "CompanyName": "",
  "ProjectName": "[YOURPROJECTNAME]",
  "ProjectType": "Angular",
  "ProjectVersion": "v8.0.0",
  "ApplicationAreaName": "App",
  "LicenseCode": "[YOURLICENSECODE]",
  "AngularSrcPath": "\\..\\..\\angular\\src\\",
  "AngularMergedSrcPath": "\\..\\src\\.Web.Host\\src\\",
  "CoreSrcPath": "\\..\\src\\",
  "FileLocations": {
    "DbContext": ".EntityFrameworkCore\\EntityFrameworkCore\\DbContext.cs",
    "CustomDtoMapper": ".Application\\CustomDtoMapper.cs",
    "AppAuthorizationProvider": ".Core\\Authorization\\AppAuthorizationProvider.cs",
    "EntityHistoryHelper": ".Core\\EntityHistory\\EntityHistoryHelper.cs",
    "AppPermissions": ".Core\\Authorization\\AppPermissions.cs",
    "LocalizationFile": ".Core\\Localization\\\\.xml",
    "EntityFrameWorkProjectFolder": ".EntityFrameworkCore",
    "Mvc": {
      "AppNavigationProvider": ".Web.Mvc\\Areas\\\\Startup\\NavigationProvider.cs",
      "AppPageNames": ".Web.Mvc\\Areas\\\\Startup\\PageNames.cs",
      "BundleConfig": ".Web.Mvc\\bundles.json"
    },
    "Angular": {
      "AppNavigationService": "app\\shared\\layout\\nav\\app-navigation.service.ts",
      "ServiceProxies": "shared\\service-proxies\\service-proxy.module.ts",
      "Module": "app\\\\.module.ts",
      "RoutingModule": "app\\\\-routing.module.ts"
    }
  }
}

It contains file paths. If you change any of these files path in your project. you need to change its path in config.json.

Note:

  1. It combines base paths to get MVC and Angular file paths.

For example: It uses CoreSrcPath + Mvc.AppNavigationProvider for AppNavigationProvider path or AngularSrcPath + Angular.AppNavigationService for AppNavigationService path.

  1. It uses AngularSrcPath for splitted angular projects and use AngularMergedSrcPath for merged project. Make your changes according to the type of your project.

Contributors


Last updated: November 15, 2019 Edit this page on GitHub
In this document