blazor webassembly to github some file can not be find?

mc 3,986 Reputation points
2022-04-17T00:11:30.867+00:00

I am using blazor webassembly and I want to use github to host it.

I open the github pages and upload it.

some file in _framework can not be find like _framework/blazor.webassembly.js

I have set the base url .

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,460 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 59,546 Reputation points
    2022-04-17T15:55:38.417+00:00

    You should have published to a folder. Then upload all folder contents to pages.

    Of course a better solution would be a GitHub action that did this. See

    https://swimburger.net/blog/dotnet/how-to-deploy-aspnet-blazor-webassembly-to-github-pages

    1 person found this answer helpful.
    0 comments No comments