-
Notifications
You must be signed in to change notification settings - Fork 705
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
Cannot build WinUI3 Preview3 desktop package project in fresh installed VS #3635
Comments
Same issue here. |
Thanks aoshiwik. This is effectively part of the documentation for WinUI 3. Unfortunately, it was already selected in my installation There is a manual workaround, I found |
@aoshiwik as I mentioned, this brings VCLibs.Desktop, but not VCLibs for me. |
This looks like an issue with the VS installation. A workaround for now that seems to work for some people is to grab the directory at C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs from an install of an earlier version of VS and copy that over (and similarly for Microsoft.VCLibs.Desktop). |
Anybody have a copy of the binaries in that folder for those who don't have another machine? |
Here is the two folders I took from my PC |
@huoyaoyuan After modifying VS 2019 Preview and including the C++ options mentioned above, it also still didn't work for me, the Microsoft.VCLibs folder was still missing, while Microsoft.VCLibs.Desktop was there. Another repair of VS 2019 Preview after the modification brought also Microsoft.VCLibs to my machine => Everything works now without manually copying folders (copying folders might be easier though :-))! |
This happened to me as well, and a repair didn't address it (using 16.8.0 at the time, but also had preview installed). I used the copy method as well to resolve it and didn't think much more of it - seeing this now, it's clear it's a common issue. |
Closing as no new reports have surfaced. If reopen please provide a recent repro. |
Originally posted at #3620 (comment) by @VagueGit .
This issue involves machine-wide shared component. You may need to reproduce it in a new VM.
I have two dev machines. One can build the preview 3 template project, one can't. The error is
Can't find SDK reference Microsoft.VCLibs and Microsoft.VCLibs.Desktop
.The working machine has VS installation upgraded since 16.0. It's using electron-based VSInstaller UI.
The not working machine has VS fresh installed for 16.8 and 16.9P1. It's using WPF-based VSInstaller UI.
The newly installed machine misses unversioned
Microsoft.VCLibs
andMicrosoft.VCLibs.Desktop
here.After trying to modify the installation, I find that C++ UWP tools workload will bring
Microsoft.VCLibs.Desktop
. But nothing I tried bringsMicrosoft.VCLibs
.This may be a VS installer issue.
Update: Repairing the VS 16.9 instance fixes this for me.
The text was updated successfully, but these errors were encountered: