warrenbuckley / Setup-VSWhere

Set up your GitHub Actions workflow with 2.7.1 version of VSWhere.exe CLI tool
MIT License
2 stars 1 forks source link

Download latest #1

Open heaths opened 4 years ago

heaths commented 4 years ago

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 commented 4 years ago

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.