-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Static assets not being linked in Blazor Wasm 3.1.0-preview4 #17596
Comments
You have to link the files manually as you do with Blazor Server. The automatic inclusion of CSS and JS files from Razor Class Libraries was always something that was temporary. The team had mentioned before that it would be going away at some point, 3.1 is it I think. |
Thanks @chrissainty, I think you're right. Looks like they need to be in |
Glad to help :) |
Describe the bug
I have a Blazor WebAssembly project currently running on .NET Core 3.1.0-preview3. The project has a main blazorwasm project and a razor class library project with javascript assets and C# wrapper classes. I just tried to update it to 3.1.0-preview4 and the javascript files are no longer being linked to the index.html page. Has something changed with static files for razor class libraries that I have missed? These are the changes I made to update it.
To Reproduce
netcore3.1
branch../watch-run.sh
or./watch-run.ps1
http://localhost:5000
Further technical details
dotnet --info
:./watch-run.sh
The text was updated successfully, but these errors were encountered: