Was it a problem caused by rad tool? If so, we can prevent it to happen again for other users.
Can you run the tool by command line and tell us the result?
(Launch command line in AspNetZeroRadTool folder and run this command: dotnet AspNetZeroRadTool.dll Hotels.Hotel.Json
)
What is the version of your Power Tool Visual Studio extension?
duplicate of https://support.aspnetzero.com/QA/Questions/8782
https://github.com/aspnetzero/aspnet-zero-core/issues/3088
@mitch it is moved to 8.5 milestone and resolved. It will be included in first next rad tool release.
Open "AspNetZeroRadTool/config.json" dile in your solution. There is a property named "ProjectVersion". Set it to "v8.3.1".
I've created an issue https://github.com/aspnetzero/aspnet-zero-core/issues/3088
You can check the updates from there.
- AppPermissions: related lines gets duplicated on each regeneration of the entity. It must be prevented and also, I want to change the generated code, however, its template is probably hidden in the application
- CustomDtoMapper: requirement is the same with the first line
Code that are placed in an existing file are not allowed to edit. They are hardcoded in the rad tool. But they shouldn't have been duplicated anyway. You can create an issue at https://github.com/aspnetzero/aspnet-zero-core
- I want to prevent overriding some files when a regeneration occurs. for example, we created a validator template and within the templateinfo.txt file, i want to prevent duplicate generation/overriding if the specified already exists.
You can create a issue (request) at https://github.com/aspnetzero/aspnet-zero-core
I didn't understand your problem. Please describe it clearly. List steps to reproduce, if possible.
You should run NSwag.
Warning: If you are working on ASP.NET Core & Angular template, after generating the entity via Power Tools, run your *.Web.Host project and then run "./angular/nswag/refresh.bat" to update service-proxies.ts.
See https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Development-Guide-Rad-Tool#how-to-use-it
and https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Infrastructure-Angular-NSwag