MuseDash.Mod.Template 1.0.4

dotnet new install MuseDash.Mod.Template::1.0.4
This package contains a .NET Template Package you can call from the shell/command line.

MuseDash.Mod.Template

NuGet

A template for making Muse Dash Mods

Pre-requisites

Getting Started (Windows Only)

  • Download SetPath.cmd from this repository and run it as administrator, follow the instructions to set Muse Dash path into your computer's environment variable.
  • Open command prompt or powershell, run
dotnet new install MuseDash.Mod.Template

This will install the template on your computer.

Usage

  • If you are using Visual Studio, you should be able to find the template in Create a new project -> MuseDash Mod

    Then you can create a new project with the following options: VS

  • If you are using Rider, you should be able to find the template in New Solution -> Custom Templates -> MuseDash Mod

    Then you can create a new project with the following advanced settings: Rider

Parameters

  • --Patching: Whether to generate a patching class for the mod. (Defaults to true)
  • --Setting: Options for generating a setting class for the mod. (Defaults to None)
    • None: Do not generate a setting class
    • MelonLoader: Use MelonPreferences for setting
    • Tomlet: Use Tomlet directly for setting, this will also generate a Data class for setting
  • --UsefulLibs: Options for including useful libraries for the mod. (Defaults to MuseDashMirror)
    • MuseDashMirror: Offers more smooth and efficient modding experience for Muse Dash.
    • ILRepack: Able to merge dependencies and mod into a single dll file.
    • UniTask: Provides an efficient allocation free async/await integration for Unity.
    • ZString: Zero Allocation StringBuilder for better performance.

Update Template

Run the following command

dotnet new update

Build From Source

  • Clone the repository to your computer
  • Open command prompt or powershell in that folder, run
dotnet build
  • Or you can use your IDE to open the MuseDash.Mod.Template.sln solution file and build the solution

[!NOTE] If you saw errors during the build about Error CS1031, it's normal, and you can ignore it. The nuget package file should still be generated.

  • Then you can find the nuget package in bin/MuseDash.Mod.Template.{version}.nupkg
  • Open command prompt or powershell in bin folder, run
dotnet new install MuseDash.Mod.Template.{version}.nupkg

[!IMPORTANT] If you have installed the template before, you should uninstall it first by running dotnet new uninstall MuseDash.Mod.Template before installing the built version.

  • net6.0

    • No dependencies.

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
1.0.4 271 3/17/2024
1.0.3 319 3/11/2024
1.0.2 138 3/10/2024
1.0.1 139 3/9/2024
1.0.0 261 3/5/2024