Ask Your Question
0

What is the method for including MSBuild parameters in launchSettings.json?

asked 2022-12-30 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-03-28 03:00:00 +0000

david gravatar image

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"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-12-30 11:00:00 +0000

Seen: 18 times

Last updated: Mar 28 '22