https://github.com/butr/bannerlord.buildresources
Resources for building Bannerlord modules.
https://github.com/butr/bannerlord.buildresources
bannerlord bannerlord-mod mount-and-blade-bannerlord msbuild-sdk tool
Last synced: 16 days ago
JSON representation
Resources for building Bannerlord modules.
- Host: GitHub
- URL: https://github.com/butr/bannerlord.buildresources
- Owner: BUTR
- License: mit
- Created: 2020-08-05T19:08:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-02T20:38:32.000Z (10 months ago)
- Last Synced: 2024-11-03T17:43:44.535Z (6 months ago)
- Topics: bannerlord, bannerlord-mod, mount-and-blade-bannerlord, msbuild-sdk, tool
- Language: PowerShell
- Homepage:
- Size: 160 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bannerlord.BuildResources
BUTR internal MSBuild extensions. Injects data in SubModule.xml. Creates the final module folder for export.
## Requirements
Requires the `ModuleName` MSBuild property widely used in our BUTR stack. Should be the same as the mod's Module Id.
Requires the `GameVersion` MSBuild property for assembly injections, see [usage](#usage).
Requires the `GameFolder` MSBuild property for outputting the final module folder in the game's `/Modules` folder. Should be the base folder path of the game.## Installation
Install the [Bannerlord.BuildResources](https://github.com/BUTR/Bannerlord.BuildResources) package.## Usage
* Adds `IsStable`, `IsBeta`, `IsDebug` and `IsRelease` based on the current Configuration string. Also adds `STABLE/BETA` constants.
* If the `GameVersion` MSBuild property is declared, will inject it into the final assembly as `AssemblyMetadata("GameVersion", GameVersion)`.
* If there are `ItemGroup` enties `InternalsVisibleTo`, will inject it into the final assembly as `InternalsVisibleTo(TEXT)`.
* If the `GameFolder` MSBuild property is declared, will create the module's folder in the game's `/Modules` folder.