Skip to content

Commit

Permalink
Add build script launch configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichb committed May 6, 2024
1 parent 8b32782 commit e1ce676
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Build/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -24,9 +26,6 @@ Clean
PackageRestore
Build
NugetPack
BuildRiderPlugin
Test

if ($NugetPushKey) {
NugetPush
}
if ($BuildRiderPlugin) { BuildRiderPlugin }
if ($RunTests) { Test }
if ($NugetPushKey) { NugetPush }
16 changes: 16 additions & 0 deletions Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -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)"
}
}
}
2 changes: 2 additions & 0 deletions SolutionItems.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
</PropertyGroup>

<ItemGroup>
<Content Include="Properties\launchSettings.json" />

<None Include="*" Exclude="*.csproj*" />
<None Include=".github\**" />
<None Include="Build\*" />
Expand Down

0 comments on commit e1ce676

Please sign in to comment.