github / github/codeql

What command line format when including a quoted string?

未關閉
#4,910 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

Hi,
I am attempting to use codeql.exe with the -c option to specify my build command. My build command has the following format:

**msbuild my_proj.vcxproj /p:configuration="Debug 2019" /p:platform=x64 -t:Clean;Build**

When I try to invoke codeql.exe to create the database using:
**codeql.exe database create codeql_databases\x64_debug_2019 -l=cpp -c="msbuild my_proj.vcxproj /p:configuration="Debug 2019" /p:platform=x64 -t:Clean;Build" -j 0**

I get an error because I have nested quoted strings caused by the "Debug 2019" portion. How can I include a quoted string in the -c portion of the codeql.exe command line? I tried using single quotes on the outer portion but that did not work either.

Thanks

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。