Circular dependency on asp.net server with blazor frontend
I am writing a Blazor WebAssembly app with a dotnet backend. The backend serves the frontend and does offer some api endpoints. So in the server project the client project is a project dependency (because i need to run and serve it).
But I would like to autogenerate the client from the openapi documentation and use this code in my browser app. This would now generate a circular dependency as far as I see at because then the client needs the server as dependency.
Has somebody already done this or can recommend a tutorial on how to do it?
Posted Oct 13, 2023, 10:17 PM UTC
17