Skip to content

Cannot build WinUI3 Preview3 desktop package project in fresh installed VS #3635

@huoyaoyuan

Description

@huoyaoyuan

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 and Microsoft.VCLibs.Desktop here.
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions