Base solution for your next web application
Open Closed

Warning file not found #8768


User avatar
0
ArturCorreia created

Hi,

When i use power tools to generate the layering of my entity (which my build succeeds), but i get a few warnings saying that...

Warning : File not found => ....\angular\src\app\admin\admin.module.ts Warning : File not found => ....\angular\src\app\admin\admin-routing.module.ts Warning : File not found => ....\angular\src\app\shared\layout\nav\app-navigation.service.ts Warning : File not found => ....\angular\src\shared\service-proxies\service-proxy.module.ts

When i go to this directory its created me this path...

E:\Projects\EZNow\angular\src\app\admin\leave\leaveTypes

This is not the path i use for my repo, my actual path is this...

E:\Projects\EZNow\EZNow-Angular\2EZNow-APP\2EZNow\src\app\admin

Why does it do this and how do i get round this?

Thanks.


3 Answer(s)
  • User Avatar
    0
    ArturCorreia created

    I'm taking that when the project is downloaded there is an angular folder, so when using power tools it will point into this folder, but is there a way I can change that to point to a different path (my chosen path)?

    Thanks.

  • User Avatar
    0
    musa.demir created

    Hi @ArturCorreia

    There is a config.json file in aspnet-core\AspNetZeroRadTool folder. You should open it and change AngularSrcPath to

    "AngularSrcPath": "\\..\\..\\EZNow-Angular\\2EZNow-APP\\2EZNow\\src\\",
    

    And also do necessary changes for FileLocations -> Angular part

    "FileLocations": {
         //...
        "Angular": {
          "AppNavigationService": "app\\shared\\layout\\nav\\app-navigation.service.ts",
          "ServiceProxies": "shared\\service-proxies\\service-proxy.module.ts",
          "Module": "app\\{{menu_Position_Here}}\\{{menu_Position_Here}}.module.ts",
          "RoutingModule": "app\\{{menu_Position_Here}}\\{{menu_Position_Here}}-routing.module.ts"
        }
      }
    
  • User Avatar
    0
    ArturCorreia created

    Nice one thanks demirmusa