Hi, I think my issue was related to the build process. I am building in azure devops and have had to force a VS2022 image, dotnet 6 and vs version 17 in my build yml file. I have documented the changed that worked for me here: blazor-server-net6-razor-class-library-assets-404-error
RCL components not recognised without code behind file
I have a razor class library that I am uplifting to .NET6. The RCL is packaged with nuget and consumed by a blazor server application.
In the RCL I have blazor components (.razor files).
When my components don't have code behind files, they aren't recognised by the code at build time (green squiggly line) and aren't loaded at runtime either.
I have tried using the default namespace from the folder path, and also adding the new
@namespace directive at the top of the file.
Is this intended behaviour?
I am using VS2022.