-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Control of the priority for MSBuild versions #14
Comments
You're right, by now, I know how to 'force' an msbuild version by using |
* FIXED: Fixed searching from MS BuildTools products. Issue #12 (Thanks @odalet). * CHANGED: [VS2017+] hMSBuild will search now in ANY available products. PR #13 (Thanks @odalet). * NOTE: In addition to changes above, please use `-vsw-priority` and `-force` keys to use only what is needed. Issues: #8, #14.
* NEW: Implemented `-vsw-as "args..."` Reassigns default commands to vswhere if used. For example: ``` hMSBuild -only-path -vsw-as "-products Microsoft.VisualStudio.Product.BuildTools" ``` Related Issues: #12, #14, #8, * CHANGED: VS2017+. Using the most modern instance by default. You can also specify `-vsw-priority` and `-force` keys to use only what is needed. Related Issues: #14, #8. * CHANGED: Updated wswhere to 2.8.4 by default. * CHANGED: Updated GetNuTool 1.8 https://github.com/3F/GetNuTool/releases/tag/1.8 Most important fix for hMSBuild: "The remote server returned an error: (407) Proxy Authentication Required." Related issue: 3F/DllExport#133 * NOTE: An compiled.full version now will be distributed together with official hMSBuild releases. https://twitter.com/GitHub3F/status/1218224792970715136 (zip packages) https://github.com/3F/hMSBuild/releases
I don't see the point in complicating the logic since hMSBuild already provides keys to explicitly eliminate unnecessary instances. And this is its main behavior, i.e. everything is permitted that is not expressly prohibited. Wrong attempts can also be filtered using Closed. |
Mentioned by @odalet from #13 (comment)
So what's going on if we're talking about VS2017+
This is so, because of this:
hMSBuild/frontend.bat
Lines 469 to 471 in 4b368c9
But in general, it depends on installation order in your machine and current ISetupConfiguration2.EnumAllInstances / IEnumSetupInstances.Next implementation. Which may sort the available products by something.
vswhere will just enumerate it 'as is' (see installation API):
just installed 2017 & 2019 on clean VM:
that is:
legacy products: 10, 11, 12, 14
Don't forget about legacy products. The part for this here:
(from newer to older versions:)
hMSBuild/frontend.bat
Lines 548 to 577 in 4b368c9
The Question is
Some additional processing from our side is possible for both cases above. But I don't think that's important for hMSBuild project because of minimal filter etc.
However, please comment and/or open PR for relevant changes.
The text was updated successfully, but these errors were encountered: