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"
Asked: 2022-12-30 11:00:00 +0000
Seen: 18 times
Last updated: Mar 28 '22