Upgrade to dotnet SDK 2.2.401 to build with F# 4.6 on Azure Devops

Infer nuget version in the ADO Pipeline Yaml
This commit is contained in:
William Blum 2019-07-31 16:06:39 -07:00 коммит произвёл William Blum
Родитель 79f8270261
Коммит e2dbda86a1
2 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -9,16 +9,23 @@
# BuildPlatform
# SignBuild - Set to 'true' if code signing is required
# PublishRelease - Set to 'true' to publish a new release to Github and Nuget
# NUGET_PACKAGE_VERSION - Version tag assigned to the nuget packages
# NUGET_PACKAGE_VERSION - (Optional) Override the Nuget version tag that normally gets inferred from releasenotes.md file
pool:
vmImage: windows-2019
steps:
- task: DotNetCoreInstaller@0
displayName: Use .NET Core sdk 2.1.200
displayName: Use .NET Core SDK 2.2.401
inputs:
version: 2.1.200
version: 2.2.401
- powershell: |
$version = & ./Get-Version.ps1
Write-Host "##vso[task.setvariable variable=NUGET_PACKAGE_VERSION]$version"
workingDirectory: $(build.sourcesDirectory)/Scripts
displayName: Infer version from release notes
errorActionPreference: stop
- task: DotNetCoreCLI@2
displayName: dotnet build for testing

Просмотреть файл

@ -38,6 +38,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{A76DC263-365A-457C-A1C2-E4C05986061B}"
ProjectSection(SolutionItems) = preProject
scripts\build.ps1 = scripts\build.ps1
scripts\Get-Version.ps1 = scripts\Get-Version.ps1
scripts\packnuget.ps1 = scripts\packnuget.ps1
EndProjectSection
EndProject