[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/3] Rebuild CodeQL builds



CodeQL can sometimes fail to detect any source code if the codebase is
not rebuilt. Use the Rebuild target to force all intermediate build artifacts
to be cleaned beforehand.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx>
---
 msbuild.ps1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/msbuild.ps1 b/msbuild.ps1
index 5d479cb..8deda6a 100644
--- a/msbuild.ps1
+++ b/msbuild.ps1
@@ -98,7 +98,7 @@ Function Run-CodeQL {
        }
        $a = "msbuild.exe"
        $a += " /m:4"
-       $a += " /t:Build"
+       $a += " /t:Rebuild"
        $a += [string]::Format(" /p:Configuration=""{0}""", $Configuration)
        $a += [string]::Format(" /p:Platform=""{0}""", $Platform)
        $a += [string]::Format(" /p:SignMode=""{0}""", $SignMode)
-- 
2.39.0.windows.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.