MsBuild and passing multiple CL options?

McCoder-9088 40 Reputation points
2023-03-27T20:00:13.5066667+00:00

Good day, hope everyone is doing well. I'm trying to pass multiple CL options in my MSBuild call and running into the dreaded C1083 error complaining about the 2 options I'm passing. How can I pass those 2 -p:ClOptions?

msbuild --% -t:Rebuild -p:RunCodeAnalysis=true -p:ClOptions="/analyze:log log.sarif;/analyze:log:compilerwarnings" -p:Configuration=Release Project1.sln

Thanks again for the help.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,573 questions
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
825 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,817 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. McCoder-9088 40 Reputation points
    2023-03-28T15:02:38.25+00:00

    Great hint with using a space as it worked. Thanks again

    0 comments No comments