microsoft / microsoft/WindowsAppSDK

1.8-experimental 3: Publishing an msix package influences future builds

Open
#5,537 4 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

After publishing an msix file from Visual Studio, the following property is added to the .csproj.user file:

`StoreAndSideload`

This causes the creation of an msix package for every future build from Visual Studio in Release mode. Also, publishing an unpackaged app fails. Workaround is to delete the .csproj.user file or just the added property after publishing.

### Steps to reproduce the bug

1. Publish an msix package of an app with appsdk 1.8 experimental 3 from Visual Studio
2. Build the app from Visual Studio in Release mode
3. Observe than an msix is unnecessarily created in the process
4. Try to publish as an unpackaged app from Visual Studio
5. Observe that this process fails unless the added option is removed from the .csproj.user file

### Expected behavior

_No response_

### Screenshots

_No response_

### NuGet package version

Windows App SDK 1.8 Experimental 2: 1.8.250515001-experimental2

### Packaging type

Packaged (MSIX)

### Windows version

Windows 11 version 24H2 (22621, October 2024 Update)

### IDE

Visual Studio 2022

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in Visual Studio using the .csproj.user file and the UapAppxPackageBuildMode property described in the report. Verify that publishing an MSIX changes later Release builds and unpackaged publishing; done means those later operations no longer require manually deleting the property.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.