diff --git a/MyExpression.Console/Properties/AssemblyInfo.cs b/MyExpression.Console/Properties/AssemblyInfo.cs index c78c5fa..27f8820 100644 --- a/MyExpression.Console/Properties/AssemblyInfo.cs +++ b/MyExpression.Console/Properties/AssemblyInfo.cs @@ -29,4 +29,4 @@ // Номер построения // Редакция [assembly: AssemblyVersion("111.111.111.111")] -[assembly: AssemblyFileVersion("222.222.222.222")] +[assembly: AssemblyFileVersion("222.222.222.222")] \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 6fae254..f302a3e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,21 +6,15 @@ install: - ps: >- $env:rev = git rev-list HEAD --count - $env:assembly_version1 = "$env:appveyor_build_version.$env:rev" - - if ($env:appveyor_repo_tag -eq $True) { $env:product_version1 = ($env:appveyor_repo_tag_name).Substring(1) } - - else { $env:product_version1 = "$env:appveyor_build_version.$env:rev-$env:appveyor_repo_branch-$env:appveyor_repo_commit" } + $env:assembly_version = "$env:appveyor_build_version.$env:rev" - Write-Host -Backgroundcolor Green -Foregroundcolor White "Assembly Version: $env:assembly_version1" - - Write-Host -Backgroundcolor Green -Foregroundcolor White " Product Version: $env:product_version1" + Write-Host -Backgroundcolor Green -Foregroundcolor White "Assembly Version: $env:assembly_version" $items = Get-ChildItem -Recurse -Include AssemblyInfo.* - foreach ($i in $items) { (Get-Content $i) -replace "111.111.111.111", $env:assembly_version1 | Set-Content $i } + foreach ($i in $items) { (Get-Content $i) -replace "111.111.111.111", $env:assembly_version | Set-Content $i } - foreach ($i in $items) { (Get-Content $i) -replace "222.222.222.222", $env:product_version1 | Set-Content $i } + foreach ($i in $items) { (Get-Content $i) -replace "222.222.222.222", $env:assembly_version | Set-Content $i } before_build: - ps: nuget restore MyExpression.sln build: @@ -52,7 +46,7 @@ deploy: - provider: GitHub tag: $(appveyor_repo_tag_name) release: MyExpression $(appveyor_repo_tag_name) - description: $(appveyor_repo_tag_name) $(assembly_version1) + description: $(appveyor_repo_tag_name) $(assembly_version) auth_token: secure: Npd8Pdh2luH0INNPoAQXoPC2g71ZM39Ys1Cu842ZZaRFt6B45Or6vy1bV10x0oSn artifact: MyExpression; MyExpression.Core.dll; MyExpression.Console.exe; MyExpression.Wpf @@ -64,7 +58,7 @@ deploy: - provider: GitHub tag: $(appveyor_repo_tag_name) release: MyExpression $(appveyor_repo_tag_name) - description: $(appveyor_repo_tag_name) $(assembly_version1) + description: $(appveyor_repo_tag_name) $(assembly_version) auth_token: secure: Npd8Pdh2luH0INNPoAQXoPC2g71ZM39Ys1Cu842ZZaRFt6B45Or6vy1bV10x0oSn artifact: MyExpression; MyExpression.Core.dll; MyExpression.Console.exe; MyExpression.Wpf