microsoft / microsoft/WindowsAppSDK

SatelliteResourceLanguages property is ignored when publishing a self-contained unpackaged .NET app,

Open
#4,288 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-WinAppSDKDeployment needs-triage
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### Describe the bug

I am building a self-contained app which is en-US only. I am setting the below property to attempt to limit the satellite assemblies that are included when publishing my app, but it seems that WindowsAppSDKSelfContained does not respected this.

en

### Steps to reproduce the bug

Set the below properties in a .net unpackaged app.

true
en-US
en


Publish the app and examine the publish directory.

### Expected behavior

Expected: Only en satellite assemblies present
Actual: All languages present

### Screenshots

![image](https://github.com/microsoft/WindowsAppSDK/assets/24962807/6fdeecbe-0e3b-4c72-bbab-fd96bcd7b1a8)

### NuGet package version

Windows App SDK 1.5.1: 1.5.240311000

### Packaging type

Unpackaged

### Windows version

Windows 11 version 22H2 (22621, 2022 Update)

### IDE

Visual Studio 2022

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the self-contained unpackaged publish with WindowsAppSDKSelfContained, DefaultLanguage, and SatelliteResourceLanguages set as shown, then inspect the publish directory. Done means the output contains only the en satellite assemblies instead of all languages; the issue does not name a source file or test to inspect.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.