Skip to content

Commit 2e07fd6

Browse files
committed
Fixed build script.
1 parent 912690a commit 2e07fd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ try
1313
dotnet clean --configuration $Configuration --verbosity minimal --nologo
1414
Get-ChildItem -Path src -Filter *.nupkg -Recurse | Remove-Item -Force
1515

16+
Write-Output "Restoring dependencies..."
17+
dotnet restore
18+
1619
Write-Output "Building..."
1720
dotnet build --configuration $Configuration --verbosity minimal --nologo -p:Version=$Version -p:PackageVersion=$PackageVersion
1821

19-
if ($SkipTests)
22+
if (-not $SkipTests)
2023
{
2124
Write-Output "Running unit tests..."
2225
dotnet test --configuration $Configuration --no-build --nologo

0 commit comments

Comments
 (0)