How do I configure my website to use either test or release configuration when I’m deploying using GIT? I can configure the branch I want to use, but the the build configuration.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best way to do this is to use a custom deployment script, as described in this post.
Once you do that, you have a lot more control over how your app is built. In this case, you can just tweak the msbuild command like it runs to use whatever configuration you want, much like you’d do if you ran msbuild on your local machine.