You can install the .Net core SDK 3.0 during the pipeline with .Net Core SDK Installer task:
- task: UseDotNet@2
displayName: 'Install .net core 3.0 (preview)'
inputs:
packageType: sdk
version: '3.0.100-preview6-012264'
installationPath: $(Agent.ToolsDirectory)/dotnet
I specified the last preview version of .net core sdk 3.0, you can put an earlier version, you can find here the versions list.
Another option is to specify 3.0.x
and enable the preview versions:
version: 3.0.x
includePreviewVersions: true
Installation results:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…