Try adding semver option to NuGet create script
This commit is contained in:
Родитель
99ea14ecd7
Коммит
14c23dc30e
|
@ -1,5 +1,8 @@
|
|||
version: '6.0.{build}'
|
||||
|
||||
environment:
|
||||
semverinfo: ''
|
||||
|
||||
dotnet_csproj:
|
||||
patch: true
|
||||
file: '**\*.csproj'
|
||||
|
|
|
@ -5,6 +5,14 @@ Write-Host "root: $root"
|
|||
$version = [System.Reflection.Assembly]::LoadFile("$root\packages\lib\net45\ICSharpCode.AvalonEdit.dll").GetName().Version
|
||||
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)
|
||||
|
||||
$semver = ''
|
||||
if (Test-Path ENV:semverinfo) {
|
||||
$semver = Get-ChildItem ENV:semverinfo
|
||||
}
|
||||
if ($semver) {
|
||||
$versionStr = "{0}.{1}-{2}" -f ($version.Major, $version.Minor, $semver)
|
||||
}
|
||||
|
||||
Write-Host "Setting .nuspec version tag to $versionStr"
|
||||
|
||||
$content = (Get-Content $root\packages\AvalonEdit.nuspec)
|
||||
|
|
Загрузка…
Ссылка в новой задаче