Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,4 @@ InitTestScene*.unity
.idea/
*/lib/
*/Lib/
SilksongPath.props
LocalBuildProperties.props
8 changes: 8 additions & 0 deletions SSMP/LocalBuildProperties_example.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<ItemGroup>
<!-- You can define multiple OutputDirectory tags below here to indicate where the build output should be
copied to, for example the below paths -->
<OutputDirectory Include="/Hollow Knight Silksong/BepInEx/plugins/SSMP"/>
<OutputDirectory Include="/some/directories/here"/>
</ItemGroup>
</Project>
11 changes: 6 additions & 5 deletions SSMP/SSMP.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<!--
Imports silksong path properties only if present in order to allow CI builds. The file should be gitignored.
If you are checking out from git and need to create a new one, you can use `dotnet new silksongpath` to generate one.
Imports local build properties only if present in order to allow CI builds. The file should be gitignored.
If you are checking out from git and need to create a new one, copy the 'LocalBuildProperties_example.props' to
'LocalBuildProperties.props'.
-->
<Import Condition="Exists('SilksongPath.props')" Project="SilksongPath.props"/>
<Import Condition="Exists('LocalBuildProperties.props')" Project="LocalBuildProperties.props"/>

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
Expand Down Expand Up @@ -61,13 +62,13 @@
<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.2" PrivateAssets="all"/>
</ItemGroup>

<Target Name="CopyMod" AfterTargets="PostBuildEvent" Condition="'$(SilksongFolder)' != ''">
<Target Name="CopyMod" AfterTargets="PostBuildEvent" Condition="'@(OutputDirectory)' != ''">
<ItemGroup>
<Binaries Include="$(TargetPath)"/>
<Binaries Include="$(TargetDir)/$(TargetName).pdb"/>
<Binaries Include="$(TargetDir)/*.dll"/>
</ItemGroup>

<Copy SourceFiles="@(Binaries)" DestinationFolder="$(SilksongFolder)/BepInEx/plugins/$(TargetName)"/>
<Copy SourceFiles="@(Binaries)" DestinationFolder="%(OutputDirectory.Identity)/"/>
</Target>
</Project>
Loading