Upgrading .net 4.8 mvc app to .net 6. I am keeping the static content in the same folders as in the previous web app project and using the web optimizer to minify and bundle.
I am seeing lot of console errors and the UI is not loading for the app
Script and Content folder
It may help if you could show how you configured in program.cs
I tried as the document :
In program.cs:
call
before:
in chat.js:
in hellow.js:
And my project:
in my View,I called:
The result:
other document may help:
Update:
I tried to add two floders under the directory of the project as your comment and tried as below to fix the 404 error:
My project: