Skip to content

Commit 5645bbd

Browse files
committed
Add missing restore step before building nanoFramework solution
1 parent 1cd8956 commit 5645bbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Build/build-functions.psm1

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ function Start-Build([boolean] $IncludeWindowsRuntimeComponent = $false, [boolea
6363
$fileLoggerArg = "/logger:FileLogger,Microsoft.Build;logfile=$testReportDir\UnitsNet.NanoFramework.msbuild.log"
6464
$appVeyorLoggerArg = if (Test-Path "$appVeyorLoggerDll") { "/logger:$appVeyorLoggerDll" } else { "" }
6565

66+
# msbuild does not auto-restore nugets for this project type
67+
& "$msbuild" "$root\UnitsNet.NanoFramework\GeneratedCode\UnitsNet.nanoFramework.sln" /verbosity:minimal /p:Configuration=Release /t:restore
68+
# now build
6669
& "$msbuild" "$root\UnitsNet.NanoFramework\GeneratedCode\UnitsNet.nanoFramework.sln" /verbosity:minimal /p:Configuration=Release $fileLoggerArg $appVeyorLoggerArg
6770
if ($lastexitcode -ne 0) { exit 1 }
6871
}

0 commit comments

Comments
 (0)