Skip to content

Commit 190fede

Browse files
authored
Merge pull request #1268 from microsoftgraph/dev
main refresh
2 parents 1f143f8 + 8970a4e commit 190fede

File tree

6 files changed

+20
-3
lines changed

6 files changed

+20
-3
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ steps:
1616
BuildConfiguration: $(buildConfiguration)
1717
OutputFullPath: $(kiotaDirectory)/output/${{ parameters.namespacePath }}/*
1818
RepoModelsDir: $(Build.SourcesDirectory)/${{ parameters.repoName }}/src/main/java/${{ parameters.namespacePath }}/generated/
19+
20+
- pwsh: |
21+
Move-Item -Path "*.txt","*.json" -Destination "$(Build.SourcesDirectory)/${{ parameters.repoName }}/src/main/java/${{ parameters.namespacePath }}/generated/"
22+
displayName: Move kiota specific metadata to expected location (txt for export file, json for lock or workspace file)
23+
workingDirectory: $(kiotaDirectory)/output/

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ parameters:
4444
type: string
4545
default: ''
4646

47+
- name: exportDom
48+
type: boolean
49+
default: true
50+
4751
steps:
4852
- template: set-up-for-generation-kiota.yml
4953
parameters:
@@ -80,6 +84,8 @@ steps:
8084

8185
- bash: '$(kiotaDirectory)/kiota generate --openapi $(Build.SourcesDirectory)/msgraph-metadata/${{ parameters.cleanMetadataFolder }}/openapi.yaml --language ${{ parameters.language }} -o $(kiotaDirectory)/output -n ${{ parameters.targetNamespace }} -c ${{ parameters.targetClassName }} ${{ parameters.customArguments }}'
8286
displayName: 'Run Kiota for ${{ parameters.language }} ${{ parameters.version }}'
87+
env:
88+
KIOTA_GENERATION:EXPORTPUBLICAPI: ${{ parameters.exportDom }}
8389

8490
- ${{ parameters.languageSpecificSteps }}
8591

.azure-pipelines/generation-templates/typescript-sdk.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ steps:
1515
- pwsh : $(Build.SourcesDirectory)/${{ parameters.repoName }}/scripts/incrementMinorVersion.ps1
1616
displayName: 'Increment minor version number'
1717
workingDirectory: '$(Build.SourcesDirectory)/${{ parameters.repoName }}/scripts'
18+
19+
20+
- pwsh: |
21+
Move-Item -Path "*.txt","*.json" -Destination "$(Build.SourcesDirectory)/${{ parameters.repoName }}/packages/"
22+
displayName: Move kiota specific metadata to expected location (txt for export file, json for lock or workspace file)
23+
workingDirectory: $(kiotaDirectory)/output/

scripts/copy-typescript-sdk-models.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ foreach ($directory in $packagesDirectories) {
2222
Invoke-Expression "$PSScriptRoot\fix-typescript-fluent-packages-imports.ps1 -targetDirectory $($directory.FullName) -packageName $packageName"
2323
}
2424

25-
Write-Host "Copied the generated files into the repo. From: $env:OutputFullPath to: $env:RepoModelsDir" -ForegroundColor Green
25+
Write-Host "Copied the generated files into the repo. From: $sourceDirectory to: $targetDirectory" -ForegroundColor Green

src/GraphODataTemplateWriter/GraphODataTemplateWriter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</ItemGroup>
5252
<ItemGroup>
5353
<PackageReference Include="Inflector.NetStandard" Version="1.2.2" />
54-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
54+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
5555
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
5656
<PackageReference Include="Mono.TextTemplating">
5757
<Version>2.3.1</Version>

0 commit comments

Comments
 (0)