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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
/Vanilla/*

# Visual Studio 2015 cache directory
/.vs/
Expand Down
27 changes: 23 additions & 4 deletions ModCommon/ModCommon.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\ILRepack.2.0.15\build\ILRepack.props" Condition="Exists('..\packages\ILRepack.2.0.15\build\ILRepack.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -12,6 +13,8 @@
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -34,10 +37,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\Assembly-CSharp.dll</HintPath>
<HintPath>..\..\..\..\..\Steam\steamapps\common\Hollow Knight\hollow_knight_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="PlayMaker">
<HintPath>..\..\PlayMaker.dll</HintPath>
<HintPath>..\..\..\..\..\Steam\steamapps\common\Hollow Knight\hollow_knight_Data\Managed\PlayMaker.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -47,10 +50,10 @@
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>C:\Programs\Unity2017_3_1f1\Editor\Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\..\..\..\..\Steam\steamapps\common\Hollow Knight\hollow_knight_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>C:\Programs\Unity2017_3_1f1\Editor\Data\UnityExtensions\Unity\GUISystem\UnityEngine.UI.dll</HintPath>
<HintPath>..\..\..\..\..\Steam\steamapps\common\Hollow Knight\hollow_knight_Data\Managed\UnityEngine.UI.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -145,6 +148,22 @@
<Target Name="AfterBuild">
<Exec Command="..\install_build.bat" />
</Target>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\ILRepack.2.0.15\build\ILRepack.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.2.0.15\build\ILRepack.props'))" />
</Target>
<PropertyGroup>
<PostBuildEvent>copy /Y "$(SolutionDir)MonoMod\*" "$(ProjectDir)$(OutputPath)\"
cd "$(ProjectDir)$(OutputPath)"
$(SolutionDir)MonoMod\MonoMod.RuntimeDetour.HookGen.exe --private Assembly-CSharp.dll
$(SolutionDir)MonoMod\MonoMod.RuntimeDetour.HookGen.exe --private Playmaker.dll

rem "Rename so that the output has the right assembly name"
move "ModCommon.dll" "ModCommonNoHooks.dll"
$(SolutionDir)packages\ILRepack.2.0.15\tools\ILRepack.exe /out:ModCommon.dll ModCommonNoHooks.dll MMHOOK_Assembly-CSharp.dll MMHOOK_Playmaker.dll MonoMod.Utils.dll Mono.Cecil.dll MonoMod.RuntimeDetour.dll</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
Binary file added MonoMod/Mono.Cecil.Mdb.dll
Binary file not shown.
Binary file added MonoMod/Mono.Cecil.Pdb.dll
Binary file not shown.
Binary file added MonoMod/Mono.Cecil.Rocks.dll
Binary file not shown.
Binary file added MonoMod/Mono.Cecil.dll
Binary file not shown.
Binary file added MonoMod/MonoMod.RuntimeDetour.HookGen.exe
Binary file not shown.
Binary file added MonoMod/MonoMod.RuntimeDetour.dll
Binary file not shown.
Binary file added MonoMod/MonoMod.Utils.dll
Binary file not shown.
Binary file added MonoMod/MonoMod.exe
Binary file not shown.
Binary file added packages/ILRepack.2.0.15/ILRepack.2.0.15.nupkg
Binary file not shown.
6 changes: 6 additions & 0 deletions packages/ILRepack.2.0.15/build/ILRepack.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ILRepack>$(MSBuildThisFileDirectory)..\tools\ILRepack.exe</ILRepack>
</PropertyGroup>
</Project>
Binary file added packages/ILRepack.2.0.15/tools/ILRepack.exe
Binary file not shown.