Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Online website gets deployed to Azure in debug mode

I created an ASP.NET MVC web application project which I commit to Visual Studio Online (Git repo) and is linked to a Windows Azure website for automatic deployment (if all unit tests succeed). My project contains the default Web.Release.config transformation that should remove the Web.config attribute /configuration/system.web/compilation/@debug which should (amongst others) enable script bundling.

It appears the web.config transformation is not executed during deployment, so I guess it doesn't use the Release configuration during build/deployment.

I also don't find a way to alter the default build definition in Visual Studio Online.

How can I get Visual Studio Online/Azure to deploy my project using Release build configuration?

like image 321
Koen Avatar asked Jan 19 '14 16:01

Koen


People also ask

What is remote debugging Azure?

Azure App Services Remote Debugging allows developers to connect Visual Studio to their Azure App Service and gain full control. They can set breakpoints, manipulate memory directly, step through code, and even change the code path.

How do I debug an Azure Web service?

Open up Azure Explorer in IntelliJ. Navigate to Web Apps and the Java Web App you want to debug. Right click on the Web App, and click Open in Browser. IntelliJ will now enter into debug mode.

How do I publish a web app from Visual Studio to Azure?

Create or open an Azure cloud service project in Visual Studio. In Solution Explorer, right-click the project, and, from the context menu, select Convert > Convert to Azure Cloud Service Project. In Solution Explorer, right-click the newly created Azure project, and, from the context menu, select Publish.


1 Answers

Update your Build Definition to specify you want the build to be a release build. To do this, in Team Explorer, go to the Builds section. Right-click on your build definition and select Edit Build Definition. In the Build Definition settings, click on the Process node. Under 2.Build, set your Configurations to Any CPU|Release.

Here's a screen capture for reference.

**enter image description here**

like image 64
Rick Rainey Avatar answered Oct 12 '22 22:10

Rick Rainey