From 6f65f22db67b7f16fca682dcd514f71e7a8cb3f5 Mon Sep 17 00:00:00 2001 From: Tom Hvitved Date: Mon, 13 Dec 2021 10:15:42 +0100 Subject: [PATCH] Update creating-codeql-databases.rst Always use `/p:UseSharedCompilation=false` for `msbuild` / `dotnet build`. --- docs/codeql/codeql-cli/creating-codeql-databases.rst | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/codeql/codeql-cli/creating-codeql-databases.rst b/docs/codeql/codeql-cli/creating-codeql-databases.rst index 39601fb4f8c..c236ae1d4e2 100644 --- a/docs/codeql/codeql-cli/creating-codeql-databases.rst +++ b/docs/codeql/codeql-cli/creating-codeql-databases.rst @@ -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::