Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update installation guide to reflect new Blazor project structures #596

Open
Awide opened this issue Feb 29, 2024 · 4 comments
Open

Update installation guide to reflect new Blazor project structures #596

Awide opened this issue Feb 29, 2024 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@Awide
Copy link

Awide commented Feb 29, 2024

I believe from .NET 8.0 (although at least from the current version) the file templates were updated to a different structure. There is no more index.html and for client and server sided rendering two folders are generated instead of only one.

@gvreddy04
Copy link
Contributor

@Awide Thank you for trying BlazorBootsrtap. Please check the documentation at https://docs.blazorbootstrap.com/getting-started/blazor-webassembly-net-8. Let us know if anything is missing.

@Awide
Copy link
Author

Awide commented Mar 5, 2024

Yes, so the installation guide cannot be used with the newest blazor projects. Just created a webassembly project and immediately got two folders instead of one, one for client and one for the project.
There is no body section of the wwwroot/index.html file because there is no index.html file. There is also no _framework/blazor.webassembly.js reference.

If I do them in App.razor instead, I get these errors when I try running the project.
/sageapp/sageapp/Components/Layout/MainLayout.razor(26,71): error CS0246: The type or namespace name 'SidebarDataProviderRequest' could not be found (are you missing a using directive or an assembly reference?) [/sageapp/sageapp/sageapp.csproj] /sageapp/sageapp/Components/Layout/MainLayout.razor(26,24): error CS0246: The type or namespace name 'SidebarDataProviderResult' could not be found (are you missing a using directive or an assembly reference?) [/sageapp/sageapp/sageapp.csproj] /sageapp/sageapp/Components/Layout/MainLayout.razor(34,25): error CS0246: The type or namespace name 'NavItem' could not be found (are you missing a using directive or an assembly reference?) [/sageapp/sageapp/sageapp.csproj] /sageapp/sageapp/Components/Layout/MainLayout.razor(23,5): error CS0246: The type or namespace name 'Sidebar' could not be found (are you missing a using directive or an assembly reference?) [/sageapp/sageapp/sageapp.csproj] /sageapp/sageapp/Components/Layout/MainLayout.razor(24,17): error CS0246: The type or namespace name 'NavItem' could not be found (are you missing a using directive or an assembly reference?) [/sageapp/sageapp/sageapp.csproj] dotnet watch ⏳ Waiting for a file to change before restarting dotnet...

@gvreddy04
Copy link
Contributor

@Awide I'll take a look tomorrow.

@Awide
Copy link
Author

Awide commented Mar 5, 2024

@Awide I'll take a look tomorrow.

Tried making a webassembly project too, I cannot get through manually installing the components. Does it work for you if you start everything from scratch, trying to add manually?

dotnet new blazor --interactivity Server --auth Individual etc

@gvreddy04 gvreddy04 added the documentation Improvements or additions to documentation label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants