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

David Thielen 2,751 Reputation points

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

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful