I have an ASP.NET Core Web API project. I also have a class library project where all of my domain objects are defined. I would like to use the same domain objects in my Blazor application. Similar to the Web API project, I went to the solution of the Blazor app and selected...
add -> existing projects, added my class library project
Now in the @code { } section I can not reference the domain objects even though the project is showing up in the solution explorer.
I tried adding the namespace to the _Imports.razor and the @using statement, but it still cannot resolve the namespace. Not sure what I am missing but sharing domain objects between WebAPI and Blazor app seems like a simple and common thing to do, prob missing something simple.