Browse Source

Update common.ps1

pull/11343/head
Volosoft Agent 4 years ago
parent
commit
0f15737bfd
  1. 11
      nupkg/common.ps1

11
nupkg/common.ps1

@ -38,6 +38,17 @@ function Seperator
Write-Host ("_" * 100) -ForegroundColor gray
}
function Get-Current-Version {
$commonPropsFilePath = resolve-path "../common.props"
$commonPropsXmlCurrent = [xml](Get-Content $commonPropsFilePath )
$currentVersion = $commonPropsXmlCurrent.Project.PropertyGroup.Version.Trim()
return $currentVersion
}
function Get-Current-Branch {
return git branch --show-current
}
function Read-File {
param(
[Parameter(Mandatory = $true)]

Loading…
Cancel
Save