title: Read local/static file in Blazor Wasm
body: <p>My project is created in <strong>Blazor WASM</strong> ( I do not want to use Blazor server )</p>
  <p>I would like to read XSD files from wwwroot:</p>
  <p><a href="https://i.stack.imgur.com/DyiaN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DyiaN.png" alt="enter image description here" /></a></p>
  <p>Inside my XsdService.cs - c# class I was trying:</p>
  <pre><code>string pathToXsd = Path.Combine(&quot;plcda&quot;,&quot;extPL_r2.xsd&quot;);
  string transformataHTML = System.IO.File.ReadAllText(pathToXsd);
  </code></pre>
  <p>However, I always get errors:</p>
  <pre><code>Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
        Unhandled exception rendering component: Could not find a part of the path &quot;/plcda/extPL_r2.xsd&quot;.
  System.IO.DirectoryNotFoundException: Could not find a part of the path &quot;/plcda/extPL_r2.xsd&quot;.
  </code></pre>
  <p>So is there any chance to include custom/static/local files to Blazor WASM? And read them even if app is offline?</p>