Skip to content

Commit 6f65f22

Browse files
authored
Update creating-codeql-databases.rst
Always use `/p:UseSharedCompilation=false` for `msbuild` / `dotnet build`.
1 parent a636021 commit 6f65f22

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/codeql/codeql-cli/creating-codeql-databases.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,9 @@ commands that you can specify for compiled languages.
208208

209209
codeql database create cpp-database --language=cpp --command=make
210210

211-
- C# project built using ``dotnet build`` (.NET Core 3.0 or later)::
211+
- C# project built using ``dotnet build``::
212212

213-
codeql database create csharp-database --language=csharp --command='dotnet build /t:rebuild'
214-
215-
On Linux and macOS (but not Windows), you need to disable shared compilation when building C# projects
216-
with .NET Core 2 or earlier, so expand the command to::
217-
218-
codeql database create csharp-database --language=csharp --command='dotnet build /p:UseSharedCompilation=false /t:rebuild'
213+
codeql database create csharp-database --language=csharp --command='dotnet build /p:UseSharedCompilation=false /t:rebuild'
219214

220215
- Go project built using the ``COEQL_EXTRACTOR_GO_BUILD_TRACING=on`` environment variable::
221216

0 commit comments

Comments
 (0)