changed project config for easier publish (web command) and changed static file because the BaseDirectory and wwwroot directory path is different between running in VS and using the published web.cmd, without a specific path it works in both cases.