We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f65f22 commit 8d607e6Copy full SHA for 8d607e6
docs/codeql/codeql-cli/creating-codeql-databases.rst
@@ -210,6 +210,10 @@ commands that you can specify for compiled languages.
210
211
- C# project built using ``dotnet build``::
212
213
+ For C# projects using either `dotnet build` or `msbuild`, you should specify `/p:UseSharedCompilation=false`
214
+ in the build command. It is also a good idea to add `/t:rebuild` to ensure that all code will be built (code
215
+ that is not built will not be included in the CodeQL database):
216
+
217
codeql database create csharp-database --language=csharp --command='dotnet build /p:UseSharedCompilation=false /t:rebuild'
218
219
- Go project built using the ``COEQL_EXTRACTOR_GO_BUILD_TRACING=on`` environment variable::
0 commit comments