File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ for ($i = 0; $i -le $readmeFiles.Count - 1; $i++) {
8787 $autorestConfigYaml = ConvertTo-YAML $yml
8888 }
8989 Invoke-GenerateAndBuildSDK - readmeAbsolutePath $readme - sdkRootPath $sdkPath - autorestConfigYaml " $autorestConfigYaml " - downloadUrlPrefix " $downloadUrlPrefix " - generatedSDKPackages $generatedSDKPackages
90+ $generatedSDKPackages [$generatedSDKPackages.Count - 1 ][' readmeMd' ] = @ ($readmeFile )
9091}
9192
9293# update services without readme.md
@@ -156,6 +157,7 @@ if ($relatedTypeSpecProjectFolder) {
156157 - generatedSDKPackages $generatedSDKPackages `
157158 - specRepoRoot $swaggerDir
158159 }
160+ $generatedSDKPackages [$generatedSDKPackages.Count - 1 ][' typespecProject' ] = @ ($typespecRelativeFolder )
159161 }
160162}
161163$outputJson = [PSCustomObject ]@ {
Original file line number Diff line number Diff line change @@ -891,15 +891,19 @@ function GeneratePackage()
891891 $ciFilePath = " sdk/$service /ci.mgmt.yml"
892892 }
893893
894+ # get the sdk version
895+ $projectFile = Join-Path $srcPath " $packageName .csproj"
896+ $version = ([xml ](Get-Content $projectFile )).Project.PropertyGroup.Version
894897 $packageDetails = @ {
898+ version = $version ;
895899 packageName = " $packageName " ;
896900 result = $result ;
897901 path = @ (" $path " , " $ciFilePath " );
898902 packageFolder = " $projectFolder " ;
899903 artifacts = $artifacts ;
900904 apiViewArtifact = $apiViewArtifact ;
901905 language = " .Net" ;
902- changelog = $changelog
906+ changelog = $changelog ;
903907 }
904908
905909 if ($null -ne $installInstructions ) {
You can’t perform that action at this time.
0 commit comments