-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathXUnity.AutoChatGptTranslator.csproj
43 lines (36 loc) · 1.7 KB
/
XUnity.AutoChatGptTranslator.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net45</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\The road of Jianghu\daojianjianghulu_Data\Managed\Translators\</GameDir>
</PropertyGroup>
<ItemGroup>
<Reference Include="XUnity.AutoTranslator.Plugin.Core">
<HintPath>packages\XUnity.AutoTranslator.Plugin.Core.dll</HintPath>
</Reference>
<Reference Include="XUnity.AutoTranslator.Plugin.ExtProtocol">
<HintPath>packages\XUnity.AutoTranslator.Plugin.ExtProtocol.dll</HintPath>
</Reference>
<Reference Include="XUnity.Common">
<HintPath>packages\XUnity.Common.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ILRepack.MSBuild.Task" Version="2.0.13" PrivateAssets="All" />
</ItemGroup>
<Target Name="ILRepack" AfterTargets="Build">
<PropertyGroup>
<WorkingDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\$(TargetFramework)</WorkingDirectory>
</PropertyGroup>
<Message Text="MERGING: @(InputAssemblies->'%(Filename)') into $(OutputAssembly)" Importance="High" />
<ILRepack OutputType="$(OutputType)" MainAssembly="$(AssemblyName).dll" OutputAssembly="$(AssemblyName).dll" InputAssemblies="@(InputAssemblies)" InternalizeExcludeAssemblies="@(InternalizeExcludeAssemblies)" WorkingDirectory="$(WorkingDirectory)" />
</Target>
<Target Name="PostBuild" AfterTargets="ILRepack">
<Exec Command="XCOPY /Y /I "$(TargetDir)$(TargetName)$(TargetExt)" "$(GameDir)"" />
</Target>
</Project>