0

We have a CI Pipeline that builds .NET using MSBuild.

Is the MSBuild by default set to deploy in Release mode? If not, how do we specify it to build in release mode?

Do we specify that in the MSBuild task configuration field? simply type release?

configuration

what i mean by debug vs release, this is how we deploy as release manually today, which we'd like to be done by the pipeline instead to completely automate the build process.

release

I came across this answer but its more relevant to tfsbuild, not Azure Devops

Cataster
  • 3,081
  • 5
  • 32
  • 79
  • https://stackoverflow.com/questions/1629779/msbuild-builds-defaults-to-debug-configuration Clearly the "Configuration" field is there. – Lex Li Mar 16 '21 at 19:05
  • @LexLi well i suppose that answers my question haha. I know it was there but I wasnt sure if it was set to build in release mode – Cataster Mar 16 '21 at 20:03

1 Answers1

2

Yes, by default it's set to build in debug mode:

debug

After specifying in "configuration" field "Release", the pipeline successfully built in Release mode.

release mode

release

Cataster
  • 3,081
  • 5
  • 32
  • 79