Does Azure compile ASP.NET Core apps in RELEASE mode?

David Thielen 2,751 Reputation points
2023-11-29T06:13:13.48+00:00

Hi all;

When I publish my Blazor (server side) app to an Azure App Service, either through Visual Studio or a GitHub action, does Azure then compile it in DEBUG or RELEASE mode (i.e. which of those is defined)?

thanks - dave

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,326 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andriy Bilous 11,176 Reputation points
    2023-11-29T22:01:48.9633333+00:00

    Hello @David Thielen

    Azure App Service itself doesn't recompile the application; it hosts the compiled binaries that you deploy.

    When you publish from Visual Studio, you have the option to choose the configuration. In the publish profile you can select DEBUG or RELEASE mode.

    in GitHub Actions you can use dotnet build or dotnet publish command with the --configuration flag set to either Release or Debug mode.

    https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-set-debug-and-release-configurations?view=vs-2022

    0 comments No comments

0 additional answers

Sort by: Most helpful