Skip to content

Commit

Permalink
(#92) Test: remove the base package during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed May 19, 2024
1 parent 943132f commit 0314677
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ param (
[string] $PackageSource = "$BuildRoot/../build/nuget/",
[string] $TdSharpRoot = "$PSScriptRoot/../tdsharp",
[string] $TdSharpTestProjectName = 'TdLib.Tests',
[string] $BasePackageName = 'tdlib.native',
[Parameter(Mandatory = $true)]
[string] $PackageName,

Expand All @@ -28,8 +29,8 @@ if (!$?) { throw 'Cannot add a NuGet package into source' }

Push-Location "$TdSharpRoot/$TdSharpTestProjectName"
try {
Write-Output "Removing a package $PackageName from the project $TdSharpTestProjectName"
& $dotnet remove "$TdSharpTestProjectName.csproj" package $PackageName
Write-Output "Removing a package $BasePackageName from the project $TdSharpTestProjectName"
& $dotnet remove "$TdSharpTestProjectName.csproj" package $BasePackageName
if (!$?) { throw 'Cannot uninstall package from the test project' }

Write-Output 'Performing dotnet restore'
Expand Down

0 comments on commit 0314677

Please sign in to comment.