I add a folder to wwwroot in Visual Studio 2022 and Blazor .NET 9.
My project is blazor server side, but after debug, this folder doesn't get served. I can't use fonts in the CSS.
This my CSS :
@font-face {
font-family: BNazanin;
src: url(Fonts/BNazanin.TTF);
}
@font-face {
font-family: BNazaninBold;
src: url(Fonts/BNazaninBold.TTF);
}
@font-face {
font-family: BNazaninOutline;
src: url(Fonts/BNazaninOutline.TTF);
}
@font-face {
font-family: BTitr;
src: url(Fonts/BTitrBold.TTF);
}
And it doesn't show this folder devtools in the browser:


js,libandbootstrap-iconsare served. Did you forget to set font files'Build ActionorCopy to Output Folderproperties?