Skip to content

Commit

Permalink
Inform msbuild to use static graph evaluation when restoring nuget pa…
Browse files Browse the repository at this point in the history
…ckages, this should speed it up
  • Loading branch information
belkiss committed Apr 27, 2022
1 parent e314283 commit 41c6be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CompileSharpmake.bat
Expand Up @@ -69,7 +69,7 @@ goto success
:BuildSharpmakeMSBuild
echo Compiling %~1 in "%~2|%~3"...

set MSBUILD_CMD=msbuild -clp:Summary -t:rebuild -restore "%~1" /nologo /verbosity:m /p:Configuration="%~2" /p:Platform="%~3" /maxcpucount /p:CL_MPCount=%NUMBER_OF_PROCESSORS%
set MSBUILD_CMD=msbuild -clp:Summary -t:rebuild -restore -p:RestoreUseStaticGraphEvaluation=true "%~1" /nologo /verbosity:m /p:Configuration="%~2" /p:Platform="%~3" /maxcpucount /p:CL_MPCount=%NUMBER_OF_PROCESSORS%
echo %MSBUILD_CMD%
%MSBUILD_CMD%
set ERROR_CODE=%errorlevel%
Expand Down
2 changes: 1 addition & 1 deletion CompileSharpmake.sh
Expand Up @@ -10,7 +10,7 @@ function BuildSharpmake {
configuration=$2
platform=$3
echo Compiling $solutionPath in "${configuration}|${platform}"...
MSBUILD_CMD="msbuild -t:build -restore \"${solutionPath}\" /nologo /v:m /p:Configuration=${configuration} /p:Platform=\"${platform}\""
MSBUILD_CMD="msbuild -t:build -restore -p:RestoreUseStaticGraphEvaluation=true \"${solutionPath}\" /nologo /v:m /p:Configuration=${configuration} /p:Platform=\"${platform}\""
echo $MSBUILD_CMD
eval $MSBUILD_CMD
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 41c6be9

Please sign in to comment.