Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download latest #1

Open
heaths opened this issue Apr 4, 2020 · 1 comment
Open

Download latest #1

heaths opened this issue Apr 4, 2020 · 1 comment

Comments

@heaths
Copy link

heaths commented Apr 4, 2020

I'm the creator/maintainer for vswhere and happy to see the effort here!

One suggestion: I do publish the versions to nuget for easy retrieval. You can make a ximple OData query to https://www.nuget.org/api/v2/Packages?$filter=Id%20eq%20%27vswhere%27%20and%20IsPrerelease%20eq%20false&$orderby=Version%20desc&$top=1 and parse out the latest version. The GitHub API could also work to get the latest release but would require setting up a token to call it. The file downloaded from nuget.org is just a ZIP (extension .vsix, which is just an OPC) and vswhere can be found at tools/vswhere.exe. That way, you don't have to keep the version you download up to date (currently it's already out of date). I have a battery of tests I use to make sure it's backward compatible.

@heaths
Copy link
Author

heaths commented Apr 4, 2020

To make it easier to extract and even cache, I ran across https://github.com/actions/toolkit/tree/master/packages/tool-cache that may help as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant