6 changed files
build | ||
azure-templates | ||
build-pack-and-publish-libraries.yml | ||
publish-test-results-for-target-frameworks.yml | ||
run-tests-on-os.yml | ||
TestTargetFramework.props | ||
azure-pipelines.yml | ||
Directory.Build.targets | ||
build-pack-and-publish-libraries.yml
/build/azure-templates/build-pack-and-publish-libraries.yml-2+11/build/azure-templates/build-pack-and-publish-libraries.yml
Add comment 15 fileVersion: '' # The AssemblyFileVersion that will be passed to dotnet build.
Add comment 16 assemblyVersion: '' # The AssemblyVersion that will be passed to dotnet build.
Add comment 17 packageVersion: '' # The NuGet version that will be passed to dotnet pack.
Add comment 18 Plus buildSdkVersion: '' # The SDK version to use to run the build
Add comment 18 19 buildConfiguration: 'Release' # Defines the build configuration. Default 'Release'.
Add comment 19 20 buildPlatform: 'Any CPU' # Defines the build platform. Default 'Any CPU'.
Add comment 20 21 nugetArtifactName: 'nuget' # The name of the Azure DevOps build artifact where the NuGet assets (.nupkg and .pdb files) will be output. Default 'nuget'.
Add comment 36 37 EnsureNotNullOrEmpty('${{ parameters.fileVersion }}', 'fileVersion')
Add comment 37 38 EnsureNotNullOrEmpty('${{ parameters.assemblyVersion }}', 'assemblyVersion')
Add comment 38 39 EnsureNotNullOrEmpty('${{ parameters.packageVersion }}', 'packageVersion')
Add comment 40 Plus EnsureNotNullOrEmpty('${{ parameters.buildSdkVersion }}', 'buildSdkVersion')
Add comment 39 41 EnsureNotNullOrEmpty('${{ parameters.buildConfiguration }}', 'buildConfiguration')
Add comment 40 42 EnsureNotNullOrEmpty('${{ parameters.buildPlatform }}', 'buildPlatform')
Add comment 41 43 EnsureNotNullOrEmpty('${{ parameters.nugetArtifactName }}', 'nugetArtifactName')
Add comment 44 46 displayName: 'Validate Template Parameters'
Add comment 45 47
Add comment 46 48 - task: UseDotNet@2
Add comment 47 Minus displayName: 'Use .NET sdk 5.0.100'
Add comment 49 Plus displayName: 'Use .NET sdk ${{ parameters.buildSdkVersion }}'
Add comment 48 50 inputs:
Add comment 49 Minus version: 5.0.100
Add comment 51 Plus packageType: 'sdk'
Add comment 52 Plus version: ${{ parameters.buildSdkVersion }}
Add comment 53 Plus
Add comment 54 Plus # Fix errors with not being able to locate SDK: https://developercommunity.visualstudio.com/t/nuget-restore-fails-because-net-core-sdk-cannot-be/598541
Add comment 55 Plus - pwsh: dotnet new globaljson --sdk-version '${{ parameters.buildSdkVersion }}'
Add comment 56 Plus
Add comment 57 Plus #- template: 'show-all-files.yml' # Uncomment for debugging
Add comment 58 Plus #- template: 'show-all-environment-variables.yml' # Uncomment for debugging
Add comment 50 59
Add comment 51 60 # Runs dotnet build
Add comment 52 61 - task: DotNetCoreCLI@2
publish-test-results-for-target-frameworks.yml
/build/azure-templates/publish-test-results-for-target-frameworks.yml+10/build/azure-templates/publish-test-results-for-target-frameworks.yml
Add comment 26
Add comment 27 - template: publish-test-results.yml
Add comment 28 parameters:
Add comment 29 Plus framework: 'net6.0'
Add comment 30 Plus testProjectName: '${{ parameters.testProjectName }}'
Add comment 31 Plus osName: '${{ parameters.osName }}'
Add comment 32 Plus testPlatform: '${{ parameters.testPlatform }}'
Add comment 33 Plus testResultsFormat: '${{ parameters.testResultsFormat }}'
Add comment 34 Plus testResultsArtifactName: '${{ parameters.testResultsArtifactName }}'
Add comment 35 Plus testResultsFileName: '${{ parameters.testResultsFileName }}'
Add comment 36 Plus
Add comment 37 Plus - template: publish-test-results.yml
Add comment 38 Plus parameters:
Add comment 29 39 framework: 'net5.0'
Add comment 30 40 testProjectName: '${{ parameters.testProjectName }}'
Add comment 31 41 osName: '${{ parameters.osName }}'
run-tests-on-os.yml
/build/azure-templates/run-tests-on-os.yml-6+7/build/azure-templates/run-tests-on-os.yml
Add comment 32 displayName: 'Validate Template Parameters'
Add comment 33
Add comment 34 - task: UseDotNet@2
Add comment 35 Minus displayName: 'Use .NET Core sdk 2.1.811'
Add comment 36 Minus inputs:
Add comment 37 Minus version: 2.1.811
Add comment 38 Minus condition: and(succeeded(), contains('${{ parameters.testTargetFrameworks }}', 'netcoreapp2.'))
Add comment 39 Minus
Add comment 40 Minus - task: UseDotNet@2
Add comment 41 35 displayName: 'Use .NET Core sdk 3.1.404'
Add comment 42 36 inputs:
Add comment 43 37 version: 3.1.404
Add comment 48 42 inputs:
Add comment 49 43 version: 5.0.100
Add comment 50 44
Add comment 45 Plus - task: UseDotNet@2
Add comment 46 Plus displayName: 'Use .NET sdk 6.0.100-rc.2'
Add comment 47 Plus inputs:
Add comment 48 Plus packageType: 'sdk'
Add comment 49 Plus version: '6.0.100-rc.2.21505.57'
Add comment 50 Plus condition: and(succeeded(), contains('${{ parameters.testTargetFrameworks }}', 'net6.')) # When this is not a pre-release, we can remove this line and make net5.0 conditional
Add comment 51 Plus
Add comment 51 52 - task: DownloadBuildArtifacts@0
Add comment 52 53 displayName: 'Download Build Artifacts: ${{ parameters.binaryArtifactName }}'
Add comment 53 54 inputs: