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

Can't detect VS 2017 build tools (15.5.2), empty output #125

Closed
rhyskoedijk opened this issue Jan 3, 2018 · 15 comments
Closed

Can't detect VS 2017 build tools (15.5.2), empty output #125

rhyskoedijk opened this issue Jan 3, 2018 · 15 comments
Labels
external need-repro Cannot reproduce or more information is necessary.

Comments

@rhyskoedijk
Copy link

rhyskoedijk commented Jan 3, 2018

I've read every thread on similar issues, but can't for the life of me find a solution to this problem.

After upgrading to v15.5.2 of the VS 2017 build tools, vswhere outputs nothing.
Prior to the upgrade, TFS was able to detect MSBuild 15, but not afterwards.
I have since completely uninstalled all VS 2017 tooling and reinstalled them, but no instance of vshwere.exe (tried TFS [v1.1] and VS/Installer [v2.2]) will show the installed instances.

I can see the installed tools in windows explorer, but vswhere will not find them,

before_working
after_failing
vswhere

Can somebody advise what is missing here, it is doing my head in.
Thanks,

@rhyskoedijk
Copy link
Author

Also note that when I reinstalled the build tools (after this issue started happening), I reinstalled them to C:, where previously they were installed to E:\

The change in drive letter shouldn't be an issue, as it was broken before I decided to uninstall/reinstall.

@heaths
Copy link
Member

heaths commented Jan 3, 2018

vswhere doesn't show the query API version, which means it's no longer installed. Please run https://aka.ms/vscollect.exe and attach %TEMP%\vslogs.zip when it finishes to diagnose why.

In the meantime, download and install (just double-click to install) https://download.visualstudio.microsoft.com/download/pr/100390094/d68d54e233c956ff79799fdf63753c54/Microsoft.VisualStudio.Setup.Configuration.msi, which is the latest release of the query API.

@heaths heaths added external need-repro Cannot reproduce or more information is necessary. labels Jan 3, 2018
@BlackFrog1
Copy link

I am having the same issue where it's not detecting MSBuild Engine 15.1.1012.6693.
vswhere result

I ran https://aka.ms/vscollect.exe, but the %TEMP%\vslogs.zip is 43 MB large. There is a limit of 10 MB attachment.

Where can I upload the vslogs.zip for you to access?

@heaths
Copy link
Member

heaths commented Jan 5, 2018

OneDrive or any other cloud drive is a good place.

@rhyskoedijk
Copy link
Author

@heaths, thanks.

I've installed the VS Setup Configuration, but it still doesn't show the query version in the console output. My vslogs.zip is also quite large, is there something specific I can extract from it or do you literary need the full zip.

@heaths
Copy link
Member

heaths commented Jan 8, 2018

Please post the whole thing. There are various pieces I may need and it will be faster than going back and forth. If you'd rather secure it for just me, I can encrypt my email for you via PGP/GPG if you share your public key.

@rhyskoedijk
Copy link
Author

rhyskoedijk commented Jan 8, 2018

https://1drv.ms/u/s!Apd2_IzUpiILbVWub6IpW1X9C94

Thanks, appreciate the help.

@heaths
Copy link
Member

heaths commented Jan 9, 2018

I'm not sure why, but I can't seem to access that link. I wonder if OneDrive now tries to open ZIPs and is maybe timing out since it's big? I really have no idea. Is it possible to stick it in a folder by itself and just share the folder?

@rhyskoedijk
Copy link
Author

rhyskoedijk commented Jan 9, 2018

https://1drv.ms/f/s!Apd2_IzUpiILblLKcxrUP4Kg-n8

It is still uploading, will edit this post once complete

@rhyskoedijk
Copy link
Author

Uploaded. does it work better now?

@rhyskoedijk
Copy link
Author

Hi, any update on this? Did you need any further information? thanks

@heaths
Copy link
Member

heaths commented Jan 13, 2018

I took a look at the files and all information shows that the query API should be present. Do you have DLLs in %ProgramData%\Microosoft\VisualStudio\Setup (2 subdirectories)? If so, from an elevated command prompt please try running regsrv32.exe on them to register them again and try again. Let me know if that works. I'm not sure how they'd get deregistered since we removed the old version and installed the newer one that would've registered them.

@rhyskoedijk
Copy link
Author

Running regsrv32.exe on the two .dll and rebooting now shows the query version. However, I still don't see my build tools installation. I reinstalled the build tools again hoping the query API fix might have changed things, but it hasn't.

capture

It looks like I'm now in the same boat as @BlackFrog1.
Any pointers on how I can diagnose why the installation isn't showing up now?

@heaths
Copy link
Member

heaths commented Jan 13, 2018

Build Tools is not selected by default. See #22. In short, pass -products *. -? shows more options, such as -prerelease was a requested breaking change that warranted the jump to v2 a while back.

@heaths heaths closed this as completed Jan 13, 2018
@rhyskoedijk
Copy link
Author

-product * flag work great. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external need-repro Cannot reproduce or more information is necessary.
Projects
None yet
Development

No branches or pull requests

3 participants