When working on an ASP.NET 6 project, I attempted to build/run and noticed that none of the wwwroot items were loading. I attempted various things I found online to attempt to fix to no avail.
I then opened the same project in Visual Studio 2019, enabled experimental SDKs (.NET 6 apparently wasn't recognizing without it), and ran it: wwwroot was working as intended. How do I get vscode to treat wwwroot as part of root?
in Program.cs, I have:
app.UseStaticFiles();
which apparently is required for the process, and each of the style/script tags are some variation of "~/[lib/css/js]/more/path/file.ext"
It works as is when doing a debug run in Visual Studio 2019, but Visual Studio Code 404s all of them.