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",