Skip to content

Commit f0f2f8c

Browse files
committed
add version and readMe or typespecProject
1 parent 65c1075 commit f0f2f8c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

eng/scripts/Invoke-GenerateAndBuildV2.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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]@{

eng/scripts/automation/GenerateAndBuildLib.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)