1+ variables :
2+ MONO_VERSION : 6_4_0
3+ NETCORE_VERSION : ' 3.0.x'
4+ XCODE_VERSION : 11.1
5+
16# set the version numbering, this results in 1.0.1 for the first build incrementing that way.
27name : 2.0$(rev:.r)
38
1116
1217# the machine and prerequisites to run this build on
1318pool :
14- name : Hosted VS2017
15- demands : msbuild
19+ vmImage : macos-10.14
1620
17- # all of the steps in this build
21+ # The different steps in our build
1822steps :
19- - task : NuGetToolInstaller@0
20- displayName : ' Use NuGet 4.9.3'
21- inputs :
22- versionSpec : 4.9.3
2323
24- - task : NuGetCommand@2
25- displayName : ' NuGet restore'
24+ - bash : sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh $(MONO_VERSION)
25+ displayName : Switch to the latest Xamarin SDK
26+
27+ - bash : echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_$(XCODE_VERSION).app;sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
28+ displayName : Switch to the latest Xcode
29+
30+ - task : UseDotNet@2
31+ displayName : ' Use .Net Core sdk'
2632 inputs :
27- restoreSolution : ' src\**\*.sln'
33+ version : $(NETCORE_VERSION)
34+ includePreviewVersions : false
2835
2936# build and pack a beta version of the NuGet package. Versioning is done through the name tag in this definition.
3037- task : MSBuild@1
31- displayName : ' Build beta'
38+ displayName : ' Build & Pack beta build '
3239 inputs :
3340 solution : ' src/Plugin.GoogleClient/Plugin.GoogleClient.csproj'
3441 configuration : ' Release'
35- msbuildArguments : ' /t:restore;build;pack /p:PackageVersion=$(Build.BuildNumber)-beta /p:PackageOutputPath=$(build.artifactstagingdirectory)/beta /p:AssemblyFileVersion=$(Build.BuildNumber) '
42+ msbuildArguments : ' /restore /t:Build /p:ContinuousIntegrationBuild=true /p:Deterministic=false /t:Pack /p: PackageVersion=$(Build.BuildNumber)-beta /p:PackageOutputPath=$(build.artifactstagingdirectory)/beta /p:AssemblyFileVersion=$(Build.BuildNumber)'
3643 clean : true
3744
3845# build and pack a final version of the NuGet package. Versioning is done through the name tag in this definition.
3946- task : MSBuild@1
40- displayName : ' Build final'
47+ displayName : ' Build & Pack final build '
4148 inputs :
4249 solution : ' src/Plugin.GoogleClient/Plugin.GoogleClient.csproj'
4350 configuration : ' Release'
44- msbuildArguments : ' /t:restore;build;pack /p:PackageVersion=$(Build.BuildNumber) /p:PackageOutputPath=$(build.artifactstagingdirectory)/final /p:AssemblyFileVersion=$(Build.BuildNumber) '
51+ msbuildArguments : ' /restore /t:Build /p:ContinuousIntegrationBuild=true /p:Deterministic=false /t:Pack /p: PackageOutputPath=$(build.artifactstagingdirectory)/final /p:AssemblyFileVersion=$(Build.BuildNumber)'
4552 clean : true
4653
4754# copy all the nupkg files created to the artifact directory
5461
5562# publish the artifacts as results of the build
5663- task : PublishBuildArtifacts@1
57- displayName : ' Publish Artifact: drop'
64+ displayName : ' Publish Artifact: drop'
0 commit comments