microsoft / microsoft/WindowsAppSDK-Samples

Project references not resloved in a WinUI 3 C++ project

Open
#252 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Download this sample https://github.com/microsoft/WindowsAppSDK-Samples.git.
  2. Open WindowsAppSDK-Samples/Samples/PhotoEditor/cpp-winui/PhotoEditor.sln , then the references may be empty.
  3. Rebuild the project, close PhotoEditor.sln, and then reopen it.
  4. Check the references, you will find exclamation mark prompt.
  5. 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.

InkedMicrosoftTeams-image (2)_LI

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.