Skip to content

Commit

Permalink
Moved static dlls into launcher lib folder on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Measurity committed Aug 9, 2020
1 parent 5b0b6a0 commit 433c931
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 deletions NitroxLauncher/NitroxLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,22 @@
TODO: Try fix this as a project reference to Nitrox.Subnautica.Assets that will copy the files on build automatically. -->
<Target Name="MoveNitroxAssetsToLauncherOutput" AfterTargets="Build" Condition="'$(OS)' == 'Windows_NT'">
<ItemGroup>
<NitroxSubnauticaAssets Include="..\Nitrox.Subnautica.Assets\**\*.dll" />
<NitroxSubnauticaAssets Include="..\Nitrox.Subnautica.Assets\**\*." />
</ItemGroup>
<ItemGroup>
<NitroxSubnauticaStaticDlls Include="..\Nitrox.Subnautica.Assets\**\*.dll" />
</ItemGroup>
<Copy SourceFiles="@(NitroxSubnauticaAssets)" DestinationFolder="$(TargetDir)\%(RecursiveDir)" />
<Copy SourceFiles="@(NitroxSubnauticaStaticDlls)" DestinationFolder="$(TargetDir)\lib\%(RecursiveDir)" />
</Target>
<Target Name="MoveDependenciesToLib" AfterTargets="Build">
<ItemGroup>
<AllDependencies Include="$(TargetDir)*.dll" />
<AllDependencies Include="$(TargetDir)*.pdb" />
<AllDependencies Include="$(TargetDir)*.dll.config" />
<AllDependencies Include="$(TargetDir)*.xml" />
</ItemGroup>
<Move SourceFiles="@(AllDependencies)" DestinationFolder="$(TargetDir)lib" />
</Target>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition="'$(OS)' == 'Windows_NT'" />
</Project>
</Project>
1 change: 1 addition & 0 deletions NitroxServer-Subnautica/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib" />
<dependentAssembly>
<assemblyIdentity name="Mono.Cecil" publicKeyToken="50cebf1cceb9d05e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.11.2.0" newVersion="0.11.2.0" />
Expand Down

0 comments on commit 433c931

Please sign in to comment.