2

I'm using Azure Continuous Deploy for an ASP.NET MVC project from a Bitbucket repository. But it only publishes the site using Release settings. How can I use Continuous Deploy with Debug settings or custom settings instead?

PS: I think that it doesn't matter, but I'm using Visual Studio 2015 with Git tools for syncing with the Bitbucket repository

1 Answer 1

6

You can customize your deployment via a .deployment file in your repo (details here). E.g, you can change to DEBUG like so:

[config]
SCM_BUILD_ARGS=-p:Configuration=Debug
Sign up to request clarification or add additional context in comments.

4 Comments

Exactly what I needed! Didn't know git deployment was so flexible. Thank you!
Note that due to a somewhat strange issue, it's important to use a dash instead of a slash for the switch. i.e. use -p and not /p
I had to remove the semicolon at the end for it to work.
What are the default options here? I'm happy to debug locally (very rarely do I need to debug on an azure app service in test). Will azure compile and optimize for a release build by default?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.