Skip to content

Commit

Permalink
Simplified dll copying a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
CptMoore committed Jun 5, 2024
1 parent 0c614c5 commit 46f42c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
11 changes: 0 additions & 11 deletions ModTek.Common/ModTek.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Common.props" />

<Target Name="CopyFilesToGame" AfterTargets="CopyFilesToOutputDirectory">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ModTekLibDir)" />
</Target>

<ItemGroup>
<InternalsVisibleTo Include="ModTek" />
<InternalsVisibleTo Include="ModTek.Preloader" />
<InternalsVisibleTo Include="ModTek.InjectorRunner" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="HarmonyX" />
<Reference Include="Mono.Cecil">
<Private>False</Private>
</Reference>
</ItemGroup>
</Project>
10 changes: 10 additions & 0 deletions ModTek.InjectorRunner/ModTek.InjectorRunner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@
<ItemGroup>
<ProjectReference Include="..\ModTek.Common\ModTek.Common.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="HarmonyX">
<PrivateAssets>All</PrivateAssets>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<Reference Include="Mono.Cecil">
<Private>False</Private>
</Reference>
</ItemGroup>
</Project>
5 changes: 2 additions & 3 deletions ModTek.Preloader/ModTek.Preloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

<Target Name="CopyFilesToGame" AfterTargets="CopyFilesToOutputDirectory">
<ItemGroup>
<Harmony12XDeps Exclude="$(TargetPath)" Include="$(OutDir)**" />
<Dlls Include="$(OutDir)**" />
<DoorstopFiles Include="run.sh;doorstop_config.ini" />
</ItemGroup>
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ModTekLibDir)" />
<Copy SourceFiles="@(Harmony12XDeps)" DestinationFolder="$(ModTekLibDir)" />
<Copy SourceFiles="@(Dlls)" DestinationFolder="$(ModTekLibDir)" />
<Copy SourceFiles="@(DoorstopFiles)" DestinationFolder="$(BattleTechGameDir)\" />
<MakeDir Directories="$(BattleTechGameDir)\Mods\ModTek\AssembliesOverride" />
</Target>
Expand Down

0 comments on commit 46f42c8

Please sign in to comment.