HKBuildUtils 0.1.2
See the version list below for details.
dotnet add package HKBuildUtils --version 0.1.2
NuGet\Install-Package HKBuildUtils -Version 0.1.2
<PackageReference Include="HKBuildUtils" Version="0.1.2" />
<PackageVersion Include="HKBuildUtils" Version="0.1.2" />
<PackageReference Include="HKBuildUtils" />
paket add HKBuildUtils --version 0.1.2
#r "nuget: HKBuildUtils, 0.1.2"
#:package HKBuildUtils@0.1.2
#addin nuget:?package=HKBuildUtils&version=0.1.2
#tool nuget:?package=HKBuildUtils&version=0.1.2
Hollow Knight Mod Build Utils
A nuget package to help make the Hollow Knight Mod
Features
Merger with HKMirror
Use ILRepack to merge mods with HKMirror and eliminate unused types in HKMirror.
How to enable
Add <MergeHKMirror>true</MergeHKMirror>
to PropertyGroup
and reference HKMirror.
The rest will take care of it for you.
Mod Resources
Using <ModResource></ModResource>
instead of <EmbeddedResource></EmbeddedResource>
automatically generates the type ModResources
for use
Example
Add the following to the project file
<ItemGroup>
<ModResource Include="Test1.txt"></ModResource>
<ModResource Include="a/Test2.txt"></ModResource>
<ModResource Include="b/c/Test3.txt"></ModResource>
</ItemGroup>
Then you can get them like this in your code
Modding.Logger.Log(ModResources.TEST1.Length);
Modding.Logger.Log(ModResources.TEST2.Length);
Modding.Logger.Log(ModResources.TEST3.Length);
You can add Default="true"
to <ModResource>
to use user-defined content.Like this
<ItemGroup>
<ModResource Include="a/b/c" Default="true"></ModResource>
</ItemGroup>
You can get it through ModResources.C
, just like mentioned above.
If ModResources.C
is used, the file $(ModDir)/a/b/c
is checked for existence first. If present, the file contents are returned, and if they are not, read from the assembly and written to the $(ModDir)/a/b/c
file
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Build.Utilities.Core (>= 17.4.0)
- Microsoft.CodeAnalysis.CSharp (>= 4.4.0)
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 4.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.6.1 | 457 | 5/28/2023 |
0.5.56 | 390 | 3/12/2023 |
0.5.55 | 351 | 3/12/2023 |
0.5.54 | 325 | 3/10/2023 |
0.5.53 | 304 | 3/10/2023 |
0.5.52 | 437 | 3/4/2023 |
0.5.35 | 346 | 3/4/2023 |
0.5.33 | 307 | 3/4/2023 |
0.5.4 | 289 | 3/3/2023 |
0.5.1 | 308 | 3/3/2023 |
0.5.0 | 311 | 3/2/2023 |
0.4.51 | 345 | 3/2/2023 |
0.4.46 | 304 | 3/2/2023 |
0.4.45 | 352 | 2/26/2023 |
0.4.0 | 328 | 2/25/2023 |
0.3.16 | 345 | 2/23/2023 |
0.3.4 | 344 | 2/22/2023 |
0.3.3 | 334 | 2/22/2023 |
0.3.2 | 381 | 2/22/2023 |
0.3.1 | 353 | 2/22/2023 |
0.3.0 | 339 | 2/21/2023 |
0.2.0 | 360 | 2/20/2023 |
0.1.4 | 406 | 1/28/2023 |
0.1.3 | 376 | 1/28/2023 |
0.1.2 | 393 | 1/28/2023 |
0.1.0 | 421 | 1/28/2023 |