microsoft / microsoft/WindowsAppSDK-Samples
Project references not resloved in a WinUI 3 C++ project
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1k
- Forks
- 335
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 8
Description
In the project PhotoEditor, why is there exclamation mark in the Reference, prompting "..... references could not be resolved"
The steps to reproduce are as follows
- Download this sample https://github.com/microsoft/WindowsAppSDK-Samples.git.
- Open WindowsAppSDK-Samples/Samples/PhotoEditor/cpp-winui/PhotoEditor.sln , then the references may be empty.
- Rebuild the project, close PhotoEditor.sln, and then reopen it.
- Check the references, you will find exclamation mark prompt.
- But if you choose the Microsoft.WindowsAppSDK version to 1.0.4, there is no exclamation mark.
My Visual Studio version:Visual Studio Community 2022 17.3.4.
This question comes from Microsoft Q&A (Project references in a WinUI 3 C++ project) and I would like to know how this problem can be solved.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with WindowsAppSDK-Samples/Samples/PhotoEditor/cpp-winui/PhotoEditor.sln and reproduce the empty or unresolved references after rebuilding and reopening it in Visual Studio Community 2022 17.3.4. Compare the behavior when Microsoft.WindowsAppSDK is set to version 1.0.4, then determine what reference-resolution behavior should be corrected and verify the references no longer show exclamation marks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100