I am trying to create a Component in Blazor server application but I get this error:
Severity Code Description Project File Line Suppression State Error CS0016 Could not write to output file 'C:\Users\UserName\Documents\Projects\FolderProject\ProjectName\obj\Debug\net6.0\generated\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Components_Pages_HRM_Xxxxxxxxxxxxxxx_razor.g.cs' -- 'Could not find a part of the path 'C:\Users\UserName\Documents\Projects\FolderProject\ProjectName\obj\Debug\net6.0\generated\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Components_Pages_HRM_Xxxxxxxxxxxxxxx_razor.g.cs'.' ProjectName C:\Users\UserName\Documents\Projects\FolderProject\ProjectName\CSC 1 Active.
I tried to created a new project and add the same component name, that works perfect, even in for separate Blazor components library, it works fine.
If I Delete just one character x
from this name, then the application works fine again!.
Can some explain to me way?
Note: My path component: application root => folder [component] => folder [Pages] => folder [HRM] => MyBlazorComponent.razor