Default ASP NET Core 9 and Angular template doesnt work after publishing

Discussão em 'Angular' iniciado por Szyszka947, Março 22, 2025.

  1. Szyszka947

    Szyszka947 Guest

    I follow this tutorial: https://learn.microsoft.com/en-us/v...torial-asp-net-core-with-angular?view=vs-2022

    and wanted to dotnet pubish my app. I didn't change anything in code, it's pure template from VS 2022. I expected that files from dist/browser should be copied to wwwroot when publishing, but it didn't happen, so I copied them myself manually.

    I changed path to fallback file at server project: app.MapFallbackToFile("/browser/index.html");

    And that's my wwwroot structure: [​IMG]

    And thats what I get in browser: [​IMG]

    Is there additional configuration that needs to be done? Why isnt it working?

    Continue reading...

Compartilhe esta Página