Skip to content

Commit 20dc3ac

Browse files
committed
Build: refined satellite assemblies, paths and naming calculations
1 parent 22ae8c0 commit 20dc3ac

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

code/Localization/ru-RU/CommandLine.Demo/Plugin.CommandLine.Demo.ru-RU.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<OutputPath>$(OutputPath)\ru-RU</OutputPath>
5-
<AssemblyName>CommandLine.Demo.resources</AssemblyName>
6-
</PropertyGroup>
7-
83
<ItemGroup>
94
<ProjectReference Include="..\..\..\Agnostic\Core\Agnostic.Core.csproj" />
105
<ProjectReference Include="..\..\..\Agnostic\Ui\Agnostic.UI.csproj" />

code/Localization/Directory.Build.props renamed to code/Localization/ru-RU/Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<Import Project="$(SolutionDir)\Directory.Build.props"/>
33

44
<PropertyGroup>
5-
<AssemblyName>Demo.Localization.resources</AssemblyName>
5+
<OutputPath>$(OutputPath)\ru-RU</OutputPath>
6+
<AssemblyName>$([System.IO.Path]::GetFileName($(MSBuildProjectDirectory))).resources</AssemblyName>
67
</PropertyGroup>
78

89
<PropertyGroup>

code/Localization/ru-RU/Editor.Demo/Plugin.Editor.Demo.ru-RU.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<OutputPath>$(OutputPath)\ru-RU</OutputPath>
5-
<AssemblyName>Editor.Demo.resources</AssemblyName>
6-
</PropertyGroup>
7-
83
<ItemGroup>
94
<ProjectReference Include="..\..\..\Agnostic\Core\Agnostic.Core.csproj" />
105
<ProjectReference Include="..\..\..\Agnostic\Ui\Agnostic.UI.csproj" />

code/Localization/ru-RU/readme.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Directory names at this level should match the assembly names of globalized applications
2+
The project file names are arbitrary
3+
4+
Output path for these satellite assemblies and assembly names are calculated by Directory.Build.props in its first PropertyGroup

0 commit comments

Comments
 (0)