Skip to content

Commit 7fc48c7

Browse files
geevensinghCopilot
andcommitted
DiffViewer: strip non-English satellite assemblies from publish output
DiffViewer's own strings are hard-coded English (no .resx, no x:Uid), so the 11 framework locale folders (cs/de/es/fr/it/ja/ko/pl/pt-BR/ru/tr) that the .NET 8 desktop runtime ships were only localizing system chrome — MessageBox buttons, AvalonEdit's Find panel, common dialog strings. Setting SatelliteResourceLanguages=en drops them from the publish output without affecting any DiffViewer-rendered UI. Verified by clean publish: bin\Release\...\publish\ now contains only DiffViewer.exe + DiffViewer.pdb (no locale subdirectories). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b024af9 commit 7fc48c7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

DiffViewer/DiffViewer.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
<RootNamespace>DiffViewer</RootNamespace>
1111
<AssemblyName>DiffViewer</AssemblyName>
1212
<ApplicationIcon>Assets\diffviewer.ico</ApplicationIcon>
13+
<!-- DiffViewer's own strings are hard-coded English; no .resx, no
14+
x:Uid. The 11 framework locale folders shipped by the .NET
15+
desktop runtime (cs/de/es/fr/it/ja/ko/pl/pt-BR/ru/tr) only
16+
localize system chrome (MessageBox buttons, AvalonEdit's Find
17+
panel, etc.) so stripping them keeps the publish output small
18+
without affecting our UI. -->
19+
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
1320
</PropertyGroup>
1421

1522
<ItemGroup>

0 commit comments

Comments
 (0)