ASP.NET wwwroot in other project 404 in debug, but not production

Viewed 13

So I have this ASP.NET (.NET 6.0) project where I'm trying to add an area in another csproj. The area in question has the following structure:

enter image description here

If I then build (publish) the project and run the generated .exe everything works as expected. My js has an alert(1) and it gets fired.

However, if I start the app in debug or with dotnet run I get a 404. The views and controllers work, but the frontend code is nowhere to be seen and not ideal

0 Answers
Related