A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
Hi @Falanga, Rod, DOH .
To confirm what the earlier Q&A Assist's Answer mentioned:
This is expected for Blazor.
.razor files are project source files. When you build/publish, the Razor tooling generates C# from each .razor component and compiles it into your app’s assemblies (your app DLL and any referenced component-library DLLs). The published .exe is the entry point that runs the app and loads those assemblies.
So the UI from the .razor files is included in the compiled DLLs, which is why the app works even though no .razor files are deployed.
References:
- https://learn.microsoft.com/en-us/aspnet/core/razor-pages/sdk?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/mvc/views/view-compilation?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/blazor/project-structure?view=aspnetcore-10.0
Hopefully this would provide some additional insights. I would greatly appreciate it if you could follow this guidance or provide feedback.
Thank you.