Works if I move the contents of the publish folder to my home folder on my Mac.
Any idea how to tell Blazor server to look at the current folder instead of my home folder for the css and favicon files?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Created a Blazor Server app from the supplied templates in both VS2022 (Windows) and VS2019 (MacOS).
Both work properly in the IDE, and when published for Windows, it works fine there.
However, when published for MacOS, neither build loads the css.
In the debug window of both Safari and Firefox on MacOS, it shows 404 for all CSS files. They are definitely appearing in the folder under wwwroot, and the main html loads properly, just not the CSS.
Can't find any discussion of this issue, and have no idea what is causing this.
Any suggestions?
Works if I move the contents of the publish folder to my home folder on my Mac.
Any idea how to tell Blazor server to look at the current folder instead of my home folder for the css and favicon files?
most likely the paths are incorrect. on macOS (like unix) ~/path, is handled by the o/s and ~/ means users home folder.