From 31c9265b7f4260d9ef9dd298a4a639071018efa1 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 21 Jan 2025 14:27:57 +0300 Subject: [PATCH 1/2] Fix SDK generation --- .../generation-templates/build-and-publish-kiota.yml | 2 ++ .../generation-templates/set-up-for-generation-kiota.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.azure-pipelines/generation-templates/build-and-publish-kiota.yml b/.azure-pipelines/generation-templates/build-and-publish-kiota.yml index e33ce0e71..fffe6d5ca 100644 --- a/.azure-pipelines/generation-templates/build-and-publish-kiota.yml +++ b/.azure-pipelines/generation-templates/build-and-publish-kiota.yml @@ -1,5 +1,7 @@ steps: - template: use-dotnet-sdk.yml + parameters: + version: "9.x" #kiota uses a net9 target - checkout: kiota displayName: checkout kiota diff --git a/.azure-pipelines/generation-templates/set-up-for-generation-kiota.yml b/.azure-pipelines/generation-templates/set-up-for-generation-kiota.yml index 6956a81a9..62b8eb9e5 100644 --- a/.azure-pipelines/generation-templates/set-up-for-generation-kiota.yml +++ b/.azure-pipelines/generation-templates/set-up-for-generation-kiota.yml @@ -10,6 +10,8 @@ parameters: steps: - template: set-user-config.yml - template: use-dotnet-sdk.yml + parameters: + version: "9.x" #kiota uses a net9 target - ${{ parameters.downloadSteps }} From ce225b359f2c4bc9ced50fdd6e0fc25c0c02f257 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 21 Jan 2025 14:34:10 +0300 Subject: [PATCH 2/2] fix: use the net9 binaries for the generation phase. --- .../generation-templates/build-and-publish-kiota.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/generation-templates/build-and-publish-kiota.yml b/.azure-pipelines/generation-templates/build-and-publish-kiota.yml index fffe6d5ca..3cbf74aad 100644 --- a/.azure-pipelines/generation-templates/build-and-publish-kiota.yml +++ b/.azure-pipelines/generation-templates/build-and-publish-kiota.yml @@ -12,7 +12,7 @@ steps: - task: CopyFiles@2 inputs: - sourceFolder: '$(Build.SourcesDirectory)/src/kiota/bin/$(BuildConfiguration)/net8.0' + sourceFolder: '$(Build.SourcesDirectory)/src/kiota/bin/$(BuildConfiguration)/net9.0' contents: '**/*' targetFolder: '$(Build.ArtifactStagingDirectory)' displayName: Copy Kiota executable