3

I am in the process of creating a build pipeline. I have a vsBuild@1 step and I am trying to see what options I could use in the msBuildArgs. I have looked at multiple links such as https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2019 but couldn't find the different fields or arguments I could set, such as '/p:DeployOnBuild=true /p:SkipInvalidConfigurations=true.

Where can I find the documentation for all of those options?

Hussam Ahmed
  • 413
  • 1
  • 5
  • 17
  • `/p=xx` is a build project property. The common ones are [here](https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-properties?view=vs-2019) – Mark Benningfield Dec 01 '20 at 14:53
  • Hi Hussam, did you get a chance to implement the solution that Leo suggested? Were you able to resolve? – PatrickLu-MSFT Dec 10 '20 at 08:53

1 Answers1

1

Where can I find the documentation for the different msbuildargs options?

There is no such document to list all msbuildargs for MSBuild. MSBuild does not have a complete list of parameters you can chose from since you can send any parameter you like. It is a means of communication between the caller of MSBuild and the author of the MSBuild build script (a vs sln or csproj file for instance).

msbuildargs usually contains some common properties, but also contains some attributes specific to specific build action, for example, deploy: DeployOnBuild MSBuild Properties. And it also contains the properties in the publish file or our custom .targets files.

Therefore, in addition to some commonly used attributes, msbuildargs has more attributes related to the action of MSBuild and the type of project being built. Currently, there is no complete list for it.

Some commonly used MSBuild properties:

Common MSBuild project properties

MSBuild Properties

MSBuild command-line reference

Parameters for MSDeploy

And so on.

Leo Liu
  • 71,098
  • 10
  • 114
  • 135