My project is created in Blazor WASM ( I do not want to use Blazor server )
I would like to read XSD files from wwwroot:
Inside my XsdService.cs - c# class I was trying:
string pathToXsd = Path.Combine("plcda","extPL_r2.xsd");
string transformataHTML = System.IO.File.ReadAllText(pathToXsd);
However, I always get errors:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Could not find a part of the path "/plcda/extPL_r2.xsd".
System.IO.DirectoryNotFoundException: Could not find a part of the path "/plcda/extPL_r2.xsd".
So is there any chance to include custom/static/local files to Blazor WASM? And read them even if app is offline?
