microsoft / microsoft/WindowsAppSDK

App update to 1.8-preview1 with errors

Open
#5,746 9 comments 0 reactions 0 assignees View on GitHub
area-MSIXBuildTools needs-triage
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### Describe the bug

When updating my app to the newest 1.8-preview1 version I am encountering the following errors:
NETSDK1022: Duplicate 'PRIResource' items were included. [...] `// Not that relevant because of easy fix w/ the property`
NETSDK1022: Duplicate 'Page' items were included. [...] `// Not that relevant because of easy fix w/ the property`
WMC1012: A project cannot have more than one ApplicationXaml item

### Steps to reproduce the bug

1. Setting the version of `Microsoft.WindowsAppSDK` package to `1.8.250814004-preview`
2. `dotnet restore`
3. `dotnet build`

### Expected behavior

A clean compile w/o any unrelated/unexpected error or warning regarding the .NET SDK or ApplicationXaml.

### Screenshots

_No response_

### NuGet package version

Windows App SDK 1.8 Preview 1: 1.8.250814004-preview1

### Packaging type

Unpackaged

### Windows version

Windows 11 version 24H2 (26100, June 2025 Update)

### IDE

Visual Studio 2022-preview

### Additional context

.NET SDK: 9.0.304

I also tried compiling with the `EnableDefaultPriItems` and `EnableDefaultPageItems` set to `false` but then it still throws the error regarding the ApplicationXaml.

The issue affects both the meta package and the individual packages.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce with Microsoft.WindowsAppSDK 1.8.250814004-preview1, .NET SDK 9.0.304, and Windows 11 24H2 by running dotnet restore followed by dotnet build. Check how the package handles default PRI, Page, and ApplicationXaml items; done means an unpackaged app builds cleanly without the reported duplicate-item or ApplicationXaml errors.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.