Skip to content

Commit 1944d35

Browse files
authored
Fix/cli restore (#1075)
* Fix nuget restore issue. * Update projectFile * Working directory doesn't work with restore command
1 parent 279a36e commit 1944d35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ stages:
806806
- template: generation-templates/cli-kiota.yml
807807
parameters:
808808
repoName: msgraph-cli
809-
projectFile: ./msgraph-cli.csproj
809+
projectFile: src/msgraph-cli.csproj
810810

811811
- stage: stage_cli_beta_kiota
812812
dependsOn:
@@ -836,7 +836,7 @@ stages:
836836
- template: generation-templates/cli-kiota.yml
837837
parameters:
838838
repoName: msgraph-beta-cli
839-
projectFile: ./msgraph-beta-cli.csproj
839+
projectFile: src/msgraph-beta-cli.csproj
840840

841841
# - stage: stage_objc_v1
842842
# dependsOn:

.azure-pipelines/generation-templates/cli-kiota.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ steps:
2323
inputs:
2424
command: restore
2525
includeNuGetOrg: true
26-
workingDirectory: $(Build.SourcesDirectory)/${{ parameters.repoName }}
2726
restoreArguments: --use-lock-file --locked-mode ${{parameters.extraRestoreArgs}}
2827
restoreDirectory: ${{parameters.restorePath}}
28+
projects: $(Build.SourcesDirectory)/${{ parameters.repoName }}/${{ parameters.projectFile }}
2929

3030
- pwsh: 'dotnet build --configuration $(buildConfiguration) --no-restore ${{ parameters.restorePath }} --runtime linux-x64'
3131
displayName: Build project ${{ parameters.repoName }}

0 commit comments

Comments
 (0)