From 865d078ce42d2905c31d11b317c7abbbbfaa7c92 Mon Sep 17 00:00:00 2001 From: Ulrich Buchgraber Date: Tue, 7 May 2024 00:19:08 +0200 Subject: [PATCH] Add build script launch configs --- Build/Build.ps1 | 11 +++++------ Properties/launchSettings.json | 16 ++++++++++++++++ SolutionItems.csproj | 2 ++ 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 Properties/launchSettings.json diff --git a/Build/Build.ps1 b/Build/Build.ps1 index 3381e9f..89ae124 100644 --- a/Build/Build.ps1 +++ b/Build/Build.ps1 @@ -3,6 +3,8 @@ Param( [Parameter()] [string] $Configuration = "Debug", [Parameter()] [string] $Version = "0.0.0.1", [Parameter()] [string] $BranchName, + [Parameter()] [boolean] $BuildRiderPlugin = $true, + [Parameter()] [boolean] $RunTests = $true, [Parameter()] [string] $CoverageBadgeUploadToken, [Parameter()] [string] $NugetPushKey ) @@ -24,9 +26,6 @@ Clean PackageRestore Build NugetPack -BuildRiderPlugin -Test - -if ($NugetPushKey) { - NugetPush -} +if ($BuildRiderPlugin) { BuildRiderPlugin } +if ($RunTests) { Test } +if ($NugetPushKey) { NugetPush } diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json new file mode 100644 index 0000000..ded2ca4 --- /dev/null +++ b/Properties/launchSettings.json @@ -0,0 +1,16 @@ +{ + "profiles": { + "Build.ps1 w/o Rider and Tests": { + "commandName": "Executable", + "executablePath": "pwsh", + "commandLineArgs": "-Command Build\\Build.ps1 -BuildRiderPlugin 0 -RunTests 0 || pause", + "workingDirectory": "$(SolutionDir)" + }, + "Build.ps1": { + "commandName": "Executable", + "executablePath": "pwsh", + "commandLineArgs": "-Command Build\\Build.ps1 || pause", + "workingDirectory": "$(SolutionDir)" + } + } +} diff --git a/SolutionItems.csproj b/SolutionItems.csproj index 39bbf7a..fd75f12 100644 --- a/SolutionItems.csproj +++ b/SolutionItems.csproj @@ -6,6 +6,8 @@ + +