After update Visual Studio, UWP does not work

Anderson Rodrigues Cavalcante 316 Reputation points
2025-05-28T18:59:35.7+00:00

Hello, everyone.

I updated my VS to the latest version, then my UWP application stopped working, and the following error occurred:
XamlCompiler warning WMC0151: Member 'CheckBoxBorderBrush' on type 'Windows.UI.Xaml.Controls.Primitives.IListViewItemPresenter4' is defined under contract 'Windows.Foundation.UniversalApiContract' version '13.0.0.0', but the contract version for the targeted min version is '8.0.0.0'!

XamlCompiler error WMC0901: A type with a full name of 'Windows.UI.Xaml.DependencyObject' already exists in an included reference.

My VS version:
User's image

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
856 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 59,901 Reputation points
    2025-05-28T19:05:09.0166667+00:00

    Update your UWP project's target version for Universal Windows to the latest version. This can be done in the project's property dialog. Then reload and see if the problem goes away.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.