github / github/codeql

What command line format when including a quoted string?

Offen
#4,910 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.