From 37cf9477778e5673c8cb25d02b4e492af99c4c1e Mon Sep 17 00:00:00 2001 From: Volosoft Agent <43883821+voloagent@users.noreply.github.com> Date: Mon, 17 Jan 2022 17:29:52 +0300 Subject: [PATCH] Update common.ps1 --- nupkg/common.ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nupkg/common.ps1 b/nupkg/common.ps1 index fbcbae15dd..f84c3a9249 100644 --- a/nupkg/common.ps1 +++ b/nupkg/common.ps1 @@ -38,6 +38,23 @@ function Seperator Write-Host ("_" * 100) -ForegroundColor gray } +function Read-File { + param( + [Parameter(Mandatory = $true)] + [string] + $filePath + ) + + $pathExists = Test-Path -Path $filePath -PathType Leaf + if ($pathExists) + { + return Get-Content $filePath + } + else{ + Write-Error "$filePath path does not exist!" + } +} + # List of solutions $solutions = ( "framework",