|
1 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
2 |
| - <PropertyGroup Label="Project"> |
3 |
| - <Configurations>Debug;Release;Development</Configurations> |
4 |
| - <TargetFramework>net8.0</TargetFramework> |
5 |
| - <OutputType>Library</OutputType> |
6 |
| - <PlatformTarget>AnyCPU</PlatformTarget> |
7 |
| - <RootNamespace>osu.Game.Rulesets.Rush</RootNamespace> |
8 |
| - </PropertyGroup> |
9 |
| - <PropertyGroup Condition=" '$(Configuration)' == 'Development' "> |
10 |
| - <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize> |
11 |
| - </PropertyGroup> |
12 |
| - <Choose> |
13 |
| - <When Condition=" '$(Configuration)' == 'Release' "> |
14 |
| - <PropertyGroup> |
15 |
| - <AssemblyName>osu.Game.Rulesets.Rush</AssemblyName> |
16 |
| - <AssemblyTitle>rush for osu!</AssemblyTitle> |
17 |
| - </PropertyGroup> |
18 |
| - </When> |
19 |
| - <Otherwise> |
20 |
| - <PropertyGroup> |
21 |
| - <AssemblyName>osu.Game.Rulesets.Rush-dev</AssemblyName> |
22 |
| - <AssemblyTitle>rush for osu! (development build)</AssemblyTitle> |
23 |
| - </PropertyGroup> |
24 |
| - </Otherwise> |
25 |
| - </Choose> |
26 |
| - <ItemGroup> |
27 |
| - <!-- The automated version of this (<EmbeddedResource Include="xyz\**" />) would prepend the RootNamespace to name, |
28 |
| - that will not work well with DllResourceStore as it can only determine the root namespace via AssemblyName, |
29 |
| - and we change that based on the build configuration for separation purposes. |
30 |
| - Therefore prepend the AssemblyName to embedded resources names instead. --> |
31 |
| - <EmbeddedResource Include="Resources\**"> |
32 |
| - <LogicalName>$(AssemblyName).$([System.String]::Copy(%(Identity)).Replace($([System.IO.Path]::DirectorySeparatorChar.ToString()), '.'))</LogicalName> |
33 |
| - </EmbeddedResource> |
34 |
| - </ItemGroup> |
35 |
| - <ItemGroup> |
36 |
| - <PackageReference Include="ppy.osu.Game" Version="2024.911.0" /> |
37 |
| - </ItemGroup> |
38 |
| -</Project> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + <PropertyGroup Label="Project"> |
| 3 | + <Configurations>Debug;Release;Development</Configurations> |
| 4 | + <TargetFramework>net8.0</TargetFramework> |
| 5 | + <OutputType>Library</OutputType> |
| 6 | + <PlatformTarget>AnyCPU</PlatformTarget> |
| 7 | + <RootNamespace>osu.Game.Rulesets.Rush</RootNamespace> |
| 8 | + </PropertyGroup> |
| 9 | + <PropertyGroup Condition=" '$(Configuration)' == 'Development' "> |
| 10 | + <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize> |
| 11 | + </PropertyGroup> |
| 12 | + <Choose> |
| 13 | + <When Condition=" '$(Configuration)' == 'Release' "> |
| 14 | + <PropertyGroup> |
| 15 | + <AssemblyName>osu.Game.Rulesets.Rush</AssemblyName> |
| 16 | + <AssemblyTitle>rush for osu!</AssemblyTitle> |
| 17 | + </PropertyGroup> |
| 18 | + </When> |
| 19 | + <Otherwise> |
| 20 | + <PropertyGroup> |
| 21 | + <AssemblyName>osu.Game.Rulesets.Rush-dev</AssemblyName> |
| 22 | + <AssemblyTitle>rush for osu! (development build)</AssemblyTitle> |
| 23 | + </PropertyGroup> |
| 24 | + </Otherwise> |
| 25 | + </Choose> |
| 26 | + <ItemGroup> |
| 27 | + <!-- The automated version of this (<EmbeddedResource Include="xyz\**" />) would prepend the RootNamespace to name, |
| 28 | + that will not work well with DllResourceStore as it can only determine the root namespace via AssemblyName, |
| 29 | + and we change that based on the build configuration for separation purposes. |
| 30 | + Therefore prepend the AssemblyName to embedded resources names instead. --> |
| 31 | + <EmbeddedResource Include="Resources\**"> |
| 32 | + <LogicalName>$(AssemblyName).$([System.String]::Copy(%(Identity)).Replace($([System.IO.Path]::DirectorySeparatorChar.ToString()), '.'))</LogicalName> |
| 33 | + </EmbeddedResource> |
| 34 | + </ItemGroup> |
| 35 | + <ItemGroup> |
| 36 | + <PackageReference Include="ppy.osu.Game" Version="2025.101.0" /> |
| 37 | + </ItemGroup> |
| 38 | +</Project> |
0 commit comments