Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To include MSBuild parameters in launchSettings.json, you can use the "commandLineArgs" property.

Here's an example:

{
  "profiles": {
    "MyProject": {
      "commandName": "Project",
      "commandLineArgs": "/p:MyParameter=Value"
    }
  }
}

In this example, the "MyProject" profile includes the "commandLineArgs" property which sets the MSBuild parameter "MyParameter" to the value "Value".

Note that you can include multiple MSBuild parameters by separating them with a space, like this:

"commandLineArgs": "/p:Param1=Value1 /p:Param2=Value2"