microsoft / vswhere

Locate Visual Studio 2017 and newer installations
MIT License
921 stars 97 forks source link

Range Detection Issue #298

Closed csteenwyk closed 1 year ago

csteenwyk commented 1 year ago

When using Visual Studio Locator version 3.1.7+f39851e70f if passing vswhere.exe -version [17.0.5,17.1) I get

installDate: 2/10/2023 2:04:15 PM installationName: VisualStudio/17.0.5+32112.339 installationPath: C:\Program Files\Microsoft Visual Studio\2022\Professional installationVersion: 17.0.32112.339 productId: Microsoft.VisualStudio.Product.Professional productPath: C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe state: 4294967295 isComplete: 1 isLaunchable: 1 isPrerelease: 0 isRebootRequired: 0 displayName: Visual Studio Professional 2022 description: Professional IDE best suited to small teams channelId: VisualStudio.17.Release channelUri: https://aka.ms/vs/17/release/channel enginePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service installChannelUri: https://aka.ms/vs/17/release/212623721_1966184275/channel releaseNotes: https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.0#17.0.5 thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=661288 updateDate: 2023-02-10T19:04:15.6289691Z catalog_buildBranch: d17.0 catalog_buildVersion: 17.0.32112.339 catalog_id: VisualStudio/17.0.5+32112.339 catalog_localBuild: build-lab catalog_manifestName: VisualStudio catalog_manifestType: installer catalog_productDisplayVersion: 17.0.5 catalog_productLine: Dev17 catalog_productLineVersion: 2022 catalog_productMilestone: RTW catalog_productMilestoneIsPreRelease: False catalog_productName: Visual Studio catalog_productPatchVersion: 5 catalog_productPreReleaseMilestoneSuffix: 1.0 catalog_productSemanticVersion: 17.0.5+32112.339 catalog_requiredEngineVersion: 3.0.4496.34889 properties_campaignId: properties_channelManifestId: VisualStudio.17.Release/17.0.5+32112.339 properties_nickname: properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe

However, if I pass vswhere.exe -version [17.0.5,17.0.6) I get no match.

From what I can tell of https://github.com/microsoft/vswhere/wiki/Versions, this should be valid and working syntax

heaths commented 1 year ago

Because the version is 17.0.32112.339 (from installationVersion, catalog_buildVersion) not 17.0.5, which is the product display version. Why these have diverged over time I cannot say, but it has more to do with branding. Sorry for any confusion, but please use the installationVersion for version queries.