-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathXUnity.AutoTranslator.LlmTranslators.csproj
More file actions
58 lines (49 loc) · 2.72 KB
/
XUnity.AutoTranslator.LlmTranslators.csproj
File metadata and controls
58 lines (49 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net45</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<PoKGameDir>C:\Program Files (x86)\Steam\steamapps\common\The road of Jianghu\daojianjianghulu_Data\Managed\Translators\</PoKGameDir>
<Xyzj2GameDir>G:\SteamLibrary\steamapps\common\下一站江湖Ⅱ\下一站江湖Ⅱ\下一站江湖Ⅱ_Data\Managed\Translators</Xyzj2GameDir>
<LoMGameDir>C:\Program Files (x86)\Steam\steamapps\common\LegendOfMortal\Mortal_Data\Managed\Translators</LoMGameDir>
<BaseFolder>\..\..\..\</BaseFolder>
<DeployToGameDirs>false</DeployToGameDirs>
<Configurations>Debug;Release</Configurations>
<UserSecretsId>f11951a3-bacd-43f2-a9fa-0187cf947674</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<Reference Include="XUnity.AutoTranslator.Plugin.Core">
<HintPath>..\libs\XUnity.AutoTranslator.Plugin.Core.dll</HintPath>
</Reference>
<Reference Include="XUnity.AutoTranslator.Plugin.ExtProtocol">
<HintPath>..\libs\XUnity.AutoTranslator.Plugin.ExtProtocol.dll</HintPath>
</Reference>
<Reference Include="XUnity.Common">
<HintPath>..\libs\XUnity.Common.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="YamlDotNet" Version="4.2.1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.45" PrivateAssets="All" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="ILRepacker" Condition="$(Configuration) == 'Release'">
<PropertyGroup>
<ReleaseFolder>$(MSBuildThisFileDirectory)..\Release\</ReleaseFolder>
<ReleaseTranslatorsFolder>$(ReleaseFolder)Translators\</ReleaseTranslatorsFolder>
<ReleaseSampleConfigFolder>$(ReleaseFolder)SampleConfig\</ReleaseSampleConfigFolder>
</PropertyGroup>
<ItemGroup>
<SampleConfigFiles Include="$(MSBuildThisFileDirectory)SampleConfig\**\*" />
</ItemGroup>
<MakeDir Directories="$(ReleaseTranslatorsFolder);$(ReleaseSampleConfigFolder)" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ReleaseTranslatorsFolder)" />
<Copy SourceFiles="@(SampleConfigFiles)" DestinationFiles="@(SampleConfigFiles->'$(ReleaseSampleConfigFolder)%(RecursiveDir)%(Filename)%(Extension)')" />
<MakeDir Directories="$(PoKGameDir);$(Xyzj2GameDir);$(LoMGameDir)" Condition="'$(DeployToGameDirs)' == 'true'" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(PoKGameDir)" Condition="'$(DeployToGameDirs)' == 'true'" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(Xyzj2GameDir)" Condition="'$(DeployToGameDirs)' == 'true'" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(LoMGameDir)" Condition="'$(DeployToGameDirs)' == 'true'" />
</Target>
</Project>