From 6fc46965b8bdeb80acbc2d12508ec5c70e17c87f Mon Sep 17 00:00:00 2001 From: stavroskasidis Date: Thu, 28 Apr 2022 16:53:51 +0300 Subject: [PATCH] Update build-sample-apps.ps1 --- scripts/build-sample-apps.ps1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/build-sample-apps.ps1 b/scripts/build-sample-apps.ps1 index 7baa7ac..447fe42 100644 --- a/scripts/build-sample-apps.ps1 +++ b/scripts/build-sample-apps.ps1 @@ -28,6 +28,15 @@ function Confirm-Process { } } +Write-Message "Building package test version..." +dotnet build ../src/BlazorWasmAntivirusProtection.Tasks/BlazorWasmAntivirusProtection.Tasks.csproj -c Release +dotnet build ../src/BlazorWasmAntivirusProtection/BlazorWasmAntivirusProtection.csproj -c Release /p:VersionSuffix="test" +Confirm-PreviousCommand + +Write-Message "Creating test nuget package ..." +dotnet pack ../src/BlazorWasmAntivirusProtection/BlazorWasmAntivirusProtection.csproj -c Release /p:VersionSuffix="test" -o ../artifacts/nuget +Confirm-PreviousCommand + Write-Message "Building Hosted Sample App ..." dotnet publish ../sampleapps/BlazorHostedSampleApp/Server/BlazorHostedSampleApp.Server.csproj -c Release -o ../artifacts/sample-apps/BlazorHostedSampleApp Confirm-PreviousCommand @@ -36,4 +45,4 @@ Write-Message "Building Hosted PWA Sample App ..." dotnet publish ../sampleapps/BlazorHostedSamplePwa/Server/BlazorHostedSamplePwa.Server.csproj -c Release -o ../artifacts/sample-apps/BlazorHostedSamplePwa Confirm-PreviousCommand -Write-Message "Build completed successfully" \ No newline at end of file +Write-Message "Build completed successfully"