MattEqualsCoder.MSURandomizer.Library 3.0.4

dotnet add package MattEqualsCoder.MSURandomizer.Library --version 3.0.4                
NuGet\Install-Package MattEqualsCoder.MSURandomizer.Library -Version 3.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MattEqualsCoder.MSURandomizer.Library" Version="3.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MattEqualsCoder.MSURandomizer.Library --version 3.0.4                
#r "nuget: MattEqualsCoder.MSURandomizer.Library, 3.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MattEqualsCoder.MSURandomizer.Library as a Cake Addin
#addin nuget:?package=MattEqualsCoder.MSURandomizer.Library&version=3.0.4

// Install MattEqualsCoder.MSURandomizer.Library as a Cake Tool
#tool nuget:?package=MattEqualsCoder.MSURandomizer.Library&version=3.0.4                

MSU Randomizer Library

This is a library which can be included in other .NET projects for looking up MSUs and randomly selecting them or shuffling the tracks.

Instructions

Step 1. Create an settings file

The application uses a YAML settings file to manage base application settings. You can find the base YAML file here. These are loaded by default, and you provide another YAMl file with overrides. You can view all possible settings here.

Step 2. Add Services to the Service Collection

The MSU Randomizer utilizes DependencyInjection. You'll need to configure a logger, then add both the UI and regular Library services to your Service Collection.

_host = Host.CreateDefaultBuilder(e.Args)
.ConfigureLogging(...})
.ConfigureServices(services =>
{
    services.AddMsuRandomizerServices();
})
.Start();

Step 3. Initialize the MSU Randomizer Library

You can use the IMsuRandomizerInitialization service to setup all required services. Create a MsuRandomizerInitializationRequest, giving it either a stream or path to your settings YAML file from step 1, then call the IMsuRandomizerInitializationService's Initialize function.

var settingsStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("MSURandomizer.settings.yaml");
if (settingsStream == null)
{
    throw new InvalidOperationException("Missing RandomizerSettings stream");
}

var msuInitializationRequest = new MsuRandomizerInitializationRequest
{
    MsuAppSettingsStream = settingsStream,
};

_host.Services.GetRequiredService<IMsuRandomizerInitializationService>().Initialize(msuInitializationRequest);

Step 4. Use any of the serviices as you'd like

Once setup, you can use any of the MSU Randomizer library services to look up MSUs, randomize MSUs, and more.

  • IMsuRandomizerInitializationService - Service used to initialize the most critical services for loading the app settings and MSU types.
  • IMsuAppSettingsService - Used to load the MSU Randomizer app settings for global options.
  • IMsuUserOptionsService - Used to load and save options for the user, such as the MSU directories and MSU overrides.
  • IMsuTypeService - Loads MSU types from a folder of JSON configs or a single JSON config.
  • IMsuLookupService - Scans folders for MSUs and automatically determines the correct MSU type for them.
  • IMsuDetailsService - Loads or saves the MSU details for a given MSU from YAML or JSON.
  • IMsuSelectorService - Used for randomly selecting/shuffling MSUs and saving them.
  • IMsuUiFactory - Factory for generating UI elements to display to the user.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MattEqualsCoder.MSURandomizer.Library:

Package Downloads
MattEqualsCoder.MSURandomizer.UI

UI library with windows and controls for randomizing MSUs.

MattEqualsCoder.MSURandomizer.Avalonia

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.4 48 12/27/2024
3.0.3 37 12/27/2024
3.0.2 48 12/26/2024
3.0.1 122 12/22/2024
3.0.0 90 11/23/2024
3.0.0-rc.5 177 11/9/2024
3.0.0-rc.4 50 11/9/2024
3.0.0-rc.3 46 11/7/2024
3.0.0-rc.2 39 11/7/2024
3.0.0-rc.1 48 11/3/2024
2.2.0-beta.1 115 7/7/2024
2.1.2 301 7/22/2024
2.1.1 139 7/15/2024
2.1.0 388 6/22/2024
2.1.0-rc.3 307 5/8/2024
2.1.0-rc.2 86 5/6/2024
2.0.1-rc.2 73 5/1/2024
2.0.0-rc.15 79 4/30/2024
2.0.0-rc.14 126 4/24/2024
2.0.0-rc.13 94 4/22/2024
2.0.0-rc.10 83 4/4/2024
2.0.0-rc.9 70 4/4/2024
2.0.0-rc.8 70 4/3/2024
2.0.0-rc.3 60 4/2/2024
2.0.0-beta.1 122 3/12/2024
1.2.4 164 1/19/2024
1.2.2 457 10/31/2023
1.2.1 276 9/24/2023
1.2.0 238 8/29/2023
1.1.6 127 8/29/2023
1.1.5 136 8/29/2023
1.1.4 153 8/27/2023
1.1.3 157 8/27/2023
1.1.2 145 8/27/2023
1.1.0 155 8/25/2023
1.0.1 168 8/21/2023
1.0.1-rc.1 75 8/21/2023
1.0.0 143 8/21/2023
0.9.8 152 8/1/2023