Skip to content

Commit

Permalink
复制 TranslationsCore
Browse files Browse the repository at this point in the history
  • Loading branch information
will258012 committed Feb 2, 2025
1 parent 80c56cc commit 4ffa8d2
Showing 1 changed file with 15 additions and 39 deletions.
54 changes: 15 additions & 39 deletions FPSCamera/FPSCamera.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,44 +52,6 @@
<IsPublishable>True</IsPublishable>
<DebugType>none</DebugType>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="rd /s /q &quot;%25LOCALAPPDATA%25\Colossal Order\Cities_Skylines\Addons\Mods\$(ProjectName)&quot;&#xD;&#xA;mkdir &quot;%25LOCALAPPDATA%25\Colossal Order\Cities_Skylines\Addons\Mods\$(ProjectName)&quot;&#xD;&#xA;xcopy /e /y &quot;$(TargetDir)&quot; &quot;%25LOCALAPPDATA%25\Colossal Order\Cities_Skylines\Addons\Mods\$(ProjectName)&quot;" />
</Target>
<ItemGroup>
<Reference Update="System">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Update="System.Core">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Update="System.Data">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Update="System.Drawing">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Update="System.Runtime.Serialization">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Update="System.Xml">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Update="System.Xml.Linq">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="CitiesHarmony.API" Version="2.2.0" />
</ItemGroup>
Expand All @@ -101,5 +63,19 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="..\AlgernonCommons\AlgernonCommonsPatchingShared.projitems" Label="Shared" />
<Target Name="DeployToModDirectory" AfterTargets="Build">

<ItemGroup>
<TranslationsCore Include="../AlgernonCommons/Translations/*.csv" />
<SourceDir Include="$(TargetDir)\**\*.*" />
</ItemGroup>
<PropertyGroup>
<DeployDir>$(LOCALAPPDATA)/Colossal Order/Cities_Skylines/Addons/Mods/$(SolutionName)/</DeployDir>
</PropertyGroup>

<Copy SourceFiles="@(SourceDir)" DestinationFolder="$(DeployDir)\%(RecursiveDir)" SkipUnchangedFiles="true" />
<Copy SourceFiles="@(TranslationsCore)" DestinationFolder="$(DeployDir)/Translations/Core" SkipUnchangedFiles="true" />
</Target>

<Import Project="..\AlgernonCommons\AlgernonCommonsPatchingShared.projitems" Label="Shared" />
</Project>

0 comments on commit 4ffa8d2

Please sign in to comment.