Did you try to use a space instead of “;”?
MsBuild and passing multiple CL options?
McCoder-9088
40
Reputation points
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.
Accepted answer
1 additional answer
Sort by: Most helpful
-
McCoder-9088 40 Reputation points
2023-03-28T15:02:38.25+00:00 Great hint with using a space as it worked. Thanks again