Base solution for your next web application
Open Closed

Angular Files not generated when use Power tool and two solutions. #6119


User avatar
1
amer_op created

Hi I've tried to use the power tool for the first time, apparently the back end files generated successfully, however I got error for angular files. I am using DotNetcore with  angular and my project is separated to two solution UI and BE.

The log is:

-> ExpensesAppService.cs is being generated.
-> IExpensesAppService.cs is being generated.
-> ExpenseConsts.cs is being generated.
-> CreateOrEditExpenseDto.cs is being generated.
-> ExpenseDto.cs is being generated.
-> GetAllExpensesForExcelInput.cs is being generated.
-> GetAllForLookupTableInput.cs is being generated.
-> GetAllExpensesInput.cs is being generated.
-> GetExpenseForView.cs is being generated.
-> GetExpenseForEditOutput.cs is being generated.
-> Expense.cs is being generated.
-> ExpensesExcelExporter.cs is being generated.
-> IExpensesExcelExporter.cs is being generated.
-> AppPermissions.cs is being modified.
-> AppAuthorizationProvider.cs is being modified.
-> SmartOpticalDbContext.cs is being modified.
-> CustomDtoMapper.cs is being modified.
Running add-migration...

Welcome to .NET Core!
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
Learn more about .NET Core: [https://aka.ms/dotnet-docs](https://aka.ms/dotnet-docs)
Use 'dotnet --help' to see available commands or visit: [https://aka.ms/dotnet-cli-docs](https://aka.ms/dotnet-cli-docs)

Telemetry
\-\-\-\-\-\-\-\-\-
The \.NET Core tools collect usage data in order to help us improve your experience\. The data is anonymous and doesn't include command\-line arguments\. The data is collected by Microsoft and shared with the community\. You can opt\-out of telemetry by setting the DOTNET\_CLI\_TELEMETRY\_OPTOUT environment variable to '1' or 'true' using your favorite shell\.

Read more about .NET Core CLI Tools telemetry: [https://aka.ms/dotnet-cli-telemetry](https://aka.ms/dotnet-cli-telemetry)

ASP.NET Core
\-\-\-\-\-\-\-\-\-\-\-\-
Successfully installed the ASP.NET Core HTTPS Development Certificate.
To trust the certificate (Windows and macOS only) first install the dev-certs tool by running 'dotnet install tool dotnet-dev-certs -g --version 2.1.0-preview1-final' and then run 'dotnet-dev-certs https --trust'.
For more information on configuring HTTPS see [https://go.microsoft.com/fwlink/?linkid=848054](https://go.microsoft.com/fwlink/?linkid=848054).
No executable found matching command "dotnet-ef"
Running update-database...
No executable found matching command "dotnet-ef"
-> expenses.component.ts is being generated.
-> expenses.component.html is being generated.
-> create-or-edit-expense-modal.component.html is being generated.
-> create-or-edit-expense-modal.component.ts is being generated.
-> view-expense-modal.component.html is being generated.
-> view-expense-modal.component.ts is being generated.
Warning : File not found => \..\..\angular\src\app\main\main.module.ts
Warning : File not found => \..\..\angular\src\app\main\main-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
-> SmartOptical.xml is being modified.

Code generation is complete. Press ENTER to exit...

3 Answer(s)
  • User Avatar
    1
    cyklussoftware created

    @emadah Did you run the NSwag utility using nswag/refresh.bat in the Angular project? I ran into a problem with Angular earlier this week where my service files were not generated properly, so when I ran Angular for the first time it wouldn't compile.

    On second glance this might not be the problem, but it's an important step anyways.

  • User Avatar
    0
    tonyclark69 created

    I'm facing the same issue. Is this simply a problem because the ASP.NET Core and Angular UI are in seperate VS Solutions?

  • User Avatar
    0
    nenjamio created

    WHAT IF NEED to create a collection inside my dto?