From 0314677f415959d346ab56217ff0b731865a5d56 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sun, 19 May 2024 22:41:09 +0200 Subject: [PATCH] (#92) Test: remove the base package during testing --- common/test.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/test.ps1 b/common/test.ps1 index fd18961..8b0a74a 100644 --- a/common/test.ps1 +++ b/common/test.ps1 @@ -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, @@ -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'