mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
19 lines
338 B
PowerShell
19 lines
338 B
PowerShell
|
|
[CmdletBinding()]
|
||
|
|
Param(
|
||
|
|
[Parameter(Mandatory=$True,Position=1)]
|
||
|
|
[string]$solution
|
||
|
|
)
|
||
|
|
|
||
|
|
Write-Host "Verifying Nuget packages for $solution"
|
||
|
|
|
||
|
|
dotnet tool restore
|
||
|
|
dotnet consolidate -s $solution
|
||
|
|
|
||
|
|
if (-not $?)
|
||
|
|
{
|
||
|
|
Write-Host -ForegroundColor Red "Nuget packages with the same name must all be the same version."
|
||
|
|
exit 1
|
||
|
|
}
|
||
|
|
|
||
|
|
exit 0
|