Cannot build WinUI3 Preview3 desktop package project in fresh installed VS
See original GitHub issueOriginally posted at https://github.com/microsoft/microsoft-ui-xaml/issues/3620#issuecomment-729466735 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
and Microsoft.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 brings Microsoft.VCLibs
.
This may be a VS installer issue.
Update: Repairing the VS 16.9 instance fixes this for me.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:11 (4 by maintainers)
Top GitHub Comments
Here is the two folders I took from my PC https://github.com/placasse/MicrosoftSDKs
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 C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs and C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop on another computer not infected by Visual Studio 16.9 Preview. I copied those files on my disk to fix the issue.