File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
cpp/autobuilder/Semmle.Autobuild.Cpp.Tests Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 55
55
DATABASE="${{ runner.temp }}/csharp-database"
56
56
PROJECT="${{ runner.temp }}/csharp-project"
57
57
dotnet new classlib --language=C# --output="$PROJECT"
58
- codeql database create "$DATABASE" --language=csharp --source-root="$PROJECT" --command 'dotnet build /t:rebuild csharp-project.csproj /p:UseSharedCompilation=false '
58
+ codeql database create "$DATABASE" --language=csharp --source-root="$PROJECT" --command 'dotnet build /t:rebuild csharp-project.csproj'
59
59
- name : Capture coverage information
60
60
run : |
61
61
DATABASE="${{ runner.temp }}/csharp-database"
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ public void TestCppAutobuilderSuccess()
299
299
{
300
300
Actions . RunProcess [ @"cmd.exe /C nuget restore C:\Project\test.sln -DisableParallelProcessing" ] = 1 ;
301
301
Actions . RunProcess [ @"cmd.exe /C C:\Project\.nuget\nuget.exe restore C:\Project\test.sln -DisableParallelProcessing" ] = 0 ;
302
- Actions . RunProcess [ @"cmd.exe /C CALL ^""C:\Program Files ^(x86^)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat^"" && set Platform=&& type NUL && C:\odasa\tools\odasa index --auto msbuild C:\Project\test.sln /p:UseSharedCompilation=false / t:rebuild /p:Platform=""x86"" /p:Configuration=""Release"" /p:MvcBuildViews=true" ] = 0 ;
302
+ Actions . RunProcess [ @"cmd.exe /C CALL ^""C:\Program Files ^(x86^)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat^"" && set Platform=&& type NUL && C:\odasa\tools\odasa index --auto msbuild C:\Project\test.sln /t:rebuild /p:Platform=""x86"" /p:Configuration=""Release"" /p:MvcBuildViews=true" ] = 0 ;
303
303
Actions . RunProcessOut [ @"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -prerelease -legacy -property installationPath" ] = "" ;
304
304
Actions . RunProcess [ @"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -prerelease -legacy -property installationPath" ] = 1 ;
305
305
Actions . RunProcess [ @"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -prerelease -legacy -property installationVersion" ] = 0 ;
Original file line number Diff line number Diff line change @@ -210,11 +210,10 @@ commands that you can specify for compiled languages.
210
210
211
211
- C# project built using ``dotnet build ``::
212
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):
213
+ It is a good idea to add `/t:rebuild` to ensure that all code will be built, or do a
214
+ prior `dotnet clean` (code that is not built will not be included in the CodeQL database):
216
215
217
- codeql database create csharp-database --language=csharp --command='dotnet build /p:UseSharedCompilation=false / t:rebuild'
216
+ codeql database create csharp-database --language=csharp --command='dotnet build /t:rebuild'
218
217
219
218
- Go project built using the ``CODEQL_EXTRACTOR_GO_BUILD_TRACING=on `` environment variable::
220
219
@@ -349,8 +348,7 @@ The following example shows how you could use indirect build tracing in an Azure
349
348
- task: VSBuild@1
350
349
inputs:
351
350
solution: '**/*.sln'
352
- # Disable MSBuild shared compilation for C# builds.
353
- msbuildArgs: /p:OutDir=$(Build.ArtifactStagingDirectory) /p:UseSharedCompilation=false
351
+ msbuildArgs: /p:OutDir=$(Build.ArtifactStagingDirectory)
354
352
platform: Any CPU
355
353
configuration: Release
356
354
# Execute a clean build, in order to remove any existing build artifacts prior to the build.
You can’t perform that action at this time.
0 commit comments