What is the difference between "wwwroot/dist" and "ClientApp/dist" folders after running this command and how to use them correctly?
dotnet publish -c Release
The wwwroot/dist folder is basically an exposed folder that stores the compiled distributions of all pre-compiled javascript or scss code in the other parts of the project.
The ClientApp/dist folder stores all the compiled distributions of all the frontend framework classes/files within the ClientApp folder (i.e. AngularJS code transpiled docs).
.NET Core SPA apps usually route to the ClientApp/dist folder when performing Dependency injection on the SPA side of things.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With