Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

In Blazor Framework, Component defined under a sub-folder in shared folder is not working

Within the application wants to create some custom components within a shared folder. For better maintenance, added a folder within the shared folder and create components within that folder. But while using those components on the page, the related custom components work working.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

if you faced the same issue, then just edit the Project file using Visual Studio and in that file u can see the below like codes –

 <ItemGroup>
    <remove Include="Shared\BasicComponent.razor" />
    <remove Include="Shared\Folders\Basic1Component.razor" />
  </ItemGroup>

 <ItemGroup>
    <None Include="Shared\BasicComponent.razor" />
    <None Include="Shared\Folders\Basic1Component.razor" />
  </ItemGroup>

In the above code remove the part related to the remove keyword and if require, you can remove the ItemGroup Node entirely for the remove tag.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading