I have a 'Hello World' Kestrel server generated by Yeoman (as described here).
yo aspnet
When I run the site via the command line everything work well:
dotnet run
If it's run through Visual Studio Code though bootstrap.css
, jquery.js
and bootstrap.js
don't load (404).
Looking at the F12 tools, they are actually coming from different locations. When run via dotnet run
they come from https://ajax.aspnetcdn.com/...
, but when run through Visual Studio Code the browser is looking for them in a local folder ~/lib/...
.
a. Why are the files being sourced differently depending on how I run the site? b. How do I fix this?
Thanks