Skip to content

Commit 9c02aef

Browse files
ShreyaLaxminarayangiritrivedi
authored andcommitted
Updated dotnet bump file
Updated the dotnet-bump script to check commit ancestry to choose between Versions.props and Version.Details.props for aspnetcore package version extraction since change in the location of version properties in aspnetcore after commit b73a3fb. Link for PR:dotnet/aspnetcore#63087 Signed-off-by: shreya <[email protected]>
1 parent 1c529c5 commit 9c02aef

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

dotnet-bump

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,22 @@ else
180180
fi
181181

182182
{
183+
cd aspnetcore
184+
if git merge-base --is-ancestor b73a3fb HEAD; then
185+
version_file="aspnetcore/eng/Version.Details.props"
186+
else
187+
version_file="aspnetcore/eng/Versions.props"
188+
fi
189+
cd ..
183190
echo_property \
184191
aspnetcore_transport_version \
185-
aspnetcore/eng/Versions.props \
192+
"$version_file" \
186193
MicrosoftNETCoreBrowserDebugHostTransportVersion
187194

188195
if $all_dotnet_component_versions_same; then
189196
echo_property \
190197
aspnetcore_runtime_version \
191-
aspnetcore/eng/Versions.props \
198+
"$version_file" \
192199
MicrosoftNETCoreAppRefVersion
193200
else
194201
echo_property \

0 commit comments

Comments
 (0)