dotnet / dotnet/msbuild

Satellite Assemblies not generated for some cultures (zh-CN) in .NET 6

Open
#7,331 18 comments 4 reactions 0 assignees View on GitHub
Area: Localization bug has-repro triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

### Issue Description
This appears to be a regression on Windows. Starting in .NET 6, a satellite assemblies are not generated for some cultures. For instance, a project with an embedded resource `resources.zh-CN.resx` will not generate a satellite assembly when using the .NET 6 SDK, but will when using the .NET 5 SDK. I'm not sure if this is limited to `zh-CN` or not - though I suspect it's related to #3897.

If I build from Visual Studio (2022 17.1.0 Preview 2), the satellite assembly will be generated. Building with the dotnet cli (SDK 6.0.101) will *not* generate the satellite assembly.

### Steps to Reproduce

Build the attached project: `dotnet build LocalizationTest.csproj`

[LocalizationTest.zip](https://github.com/dotnet/msbuild/files/7930227/LocalizationTest.zip)

### Expected Behavior

A satellite assembly will be generated into a `zh-CN` subfolder in the output folder.

### Actual Behavior

No satellite assembly is generated.

### Versions & Configurations

Windows 11 (21H2 22000.132)
dotnet SDK 5.0.400 correctly generates the satellite assembly
dotnet SDK 6.0.101 does not
Visual Studio 2022 (17.1.0 Preview 2) does generate the satellite assembly

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.