mirror of
https://github.com/github/codeql.git
synced 2026-01-27 21:33:03 +01:00
Update creating-codeql-databases.rst
Always use `/p:UseSharedCompilation=false` for `msbuild` / `dotnet build`.
This commit is contained in:
@@ -208,14 +208,9 @@ commands that you can specify for compiled languages.
|
||||
|
||||
codeql database create cpp-database --language=cpp --command=make
|
||||
|
||||
- C# project built using ``dotnet build`` (.NET Core 3.0 or later)::
|
||||
- C# project built using ``dotnet build``::
|
||||
|
||||
codeql database create csharp-database --language=csharp --command='dotnet build /t:rebuild'
|
||||
|
||||
On Linux and macOS (but not Windows), you need to disable shared compilation when building C# projects
|
||||
with .NET Core 2 or earlier, so expand the command to::
|
||||
|
||||
codeql database create csharp-database --language=csharp --command='dotnet build /p:UseSharedCompilation=false /t:rebuild'
|
||||
codeql database create csharp-database --language=csharp --command='dotnet build /p:UseSharedCompilation=false /t:rebuild'
|
||||
|
||||
- Go project built using the ``COEQL_EXTRACTOR_GO_BUILD_TRACING=on`` environment variable::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user