Versions stored in ACR are not present in numerical order, instead they use chronological order of when the repository tag (i.e version in our context) is published. This PR sorts tags (i.e versions) returned in FindACRImageTags().
The tag is a string, but we use it for version and version can be a NuGetVersion that may have different number of trailing 0's but the normalized version would be the same. So if a version "1.0.0" is published, the user input of version "1.0" or "1.0.0.0" should also match it but previously did not. This PR fixes this by finding the exact tag (i.e version) from the server and using that when we call GetACRMetadata().
If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.
Versions stored in ACR are not present in numerical order, instead they use chronological order of when the repository tag (i.e version in our context) is published. This PR sorts tags (i.e versions) returned in FindACRImageTags().
The tag is a string, but we use it for version and version can be a NuGetVersion that may have different number of trailing 0's but the normalized version would be the same. So if a version "1.0.0" is published, the user input of version "1.0" or "1.0.0.0" should also match it but previously did not. This PR fixes this by finding the exact tag (i.e version) from the server and using that when we call GetACRMetadata().
Also add support for prerelease versions.
PR Summary
PR Context
Resolves #1581 #1582 #1584
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.