Base solution for your next web application
Open Closed

PhoneBook Demo Service Proxy Generation not working #8130


User avatar
0
azmanagedit created

I downloaded a demo project and have been following the instructions to create the PhoneBook. I found a few issues along the way but now I am stuck.

When I perform the instructions to generated the PersonServiceProxy as described nothing happens.

I did find code on GitHub with the complete solution, but it appears be an older version (2017).

Here is the link to the instructions: https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Developing-Step-By-Step-Angular-Using-GetPeople-Method-from-Angular

Here is the output I get:

This is for the most recent version ASP.NET Core 3.0 Angular v8.0.0.

Thanks.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Has the content of your src\shared\service-proxies\service-proxies.ts file not changed?

  • User Avatar
    0
    azmanagedit created

    @maliming Thanks for the prompt response. I went through my code changes again to verify and found a missing statement "public" for the PersonAppService. After running nswag, the service.proxies.ts file updated.

    Thank you,