Skip to content

Commit

Permalink
Merge pull request #1453 from qdraw/feature/202403-rm-unused-cultures
Browse files Browse the repository at this point in the history
Remove unused cultures dll's
  • Loading branch information
qdraw authored Mar 8, 2024
2 parents 9efa372 + e48cc20 commit bfcce08
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions history.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Semantic Versioning 2.0.0 is from version 0.1.6+
- [x] (Fixed) _Back-end_ Longer regex timeout for GetFileName (PR #1444)
- [x] (Fixed) _Back-end_ Warnings for Sonarcloud (PR #1445)
- [x] (Fixed) _Front-end_ Fix list item status OkAndSame is not red anymore (PR #1445)
- [x] (Removed) _Back-end_ Unused .NET cultures (PR #1453)

## version 0.6.0-beta.2 - 2024-03-05 {#v0.6.0-beta.2}

Expand Down
21 changes: 21 additions & 0 deletions starsky/starsky/starsky.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,25 @@
<PropertyGroup Condition=" '$(noSonar)' == 'true' ">
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>

<!-- remove cultures (https://stackoverflow.com/a/34362524)-->

<Target Name="AfterPackage" AfterTargets="CopyAllFilesToSingleFolderForPackage"/>

<ItemGroup>
<ThisAppExcludedCultures Include="cs;da;de;es;fa;fi;fr;it;ko;mk;nl;pl;pt;ru;sv;tr;zh-CN;pt-BR;ja;zh-Hans;zh-Hant">
<InProject>false</InProject>
</ThisAppExcludedCultures>
</ItemGroup>

<Target Name="RemoveTranslationsAfterBuild" AfterTargets="AfterBuild">
<RemoveDir Directories="@(ThisAppExcludedCultures->'$(OutputPath)%(Filename)')"/>
</Target>

<Target Name="RemoveTranslationsAfterPackage" AfterTargets="AfterPackage">
<RemoveDir Directories="@(ThisAppExcludedCultures->'$(_PackageTempDir)\$(OutputPath)%(Filename)')"/>
</Target>

<!-- end remove cultures -->

</Project>

0 comments on commit bfcce08

Please sign in to comment.