Optifine.Installer
1.0.1
dotnet add package Optifine.Installer --version 1.0.1
NuGet\Install-Package Optifine.Installer -Version 1.0.1
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="Optifine.Installer" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Optifine.Installer" Version="1.0.1" />
<PackageReference Include="Optifine.Installer" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Optifine.Installer --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Optifine.Installer, 1.0.1"
#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.
#:package Optifine.Installer@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Optifine.Installer&version=1.0.1
#tool nuget:?package=Optifine.Installer&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Optifine.Installer
Minecraft OptiFine Installer.
Features
- Fetch available OptiFine versions from the official source.
- Display version details including Forge compatibility, preview status, and upload date.
- Install Nearly All OptiFine Versions
Install
Install the Optifine.Installer Nuget package
Sample Code With CmlLib.Core
using CmlLib.Core;
using CmlLib.Core.Auth;
using CmlLib.Core.ProcessBuilder;
using Optifine.Installer;
using System;
using System.Linq;
using System.Net.Http;
var loader = new OptifineInstaller(new HttpClient());
var versions = await loader.GetOptifineVersionsAsync();
Console.WriteLine($"{"Version",-40} {"Forge Ver",-10} {"Preview",-8} {"Uploaded",-12}");
Console.WriteLine(new string('-', 61));
foreach (var v in versions)
{
Console.WriteLine($"{v.Version,-40} {v.ForgeVersion,-10} {(v.IsPreviewVersion ? "Yes" : "No"),-8} {v.UploadedDate:yyyy-MM-dd}");
}
Console.WriteLine(new string('-', 61));
Console.Write("Version: ");
var version = Console.ReadLine();
Console.WriteLine("selected version: " + version);
var selectedVersion = versions.FirstOrDefault(x => x.Version == version);
if (selectedVersion is null)
{
Console.WriteLine("version not found");
return;
}
var minecraftPath = new MinecraftPath();
var launcher = new MinecraftLauncher(minecraftPath);
await launcher.InstallAsync(selectedVersion.MinecraftVersion);
Console.WriteLine($"done installing vanilla version: {selectedVersion.MinecraftVersion}");
var versionName = await loader.InstallOptifineAsync(minecraftPath.BasePath, selectedVersion);
Console.WriteLine($"done installing optifine: {versionName}");
var process = await launcher.InstallAndBuildProcessAsync(versionName, new MLaunchOption
{
Session = MSession.CreateOfflineSession("test123"),
MaximumRamMb = 2048
});
process.Start();
await process.WaitForExitAsync();
Supported OptiFine Versions
Confirmed Working Versions
- OptiFine_1.21.4_HD_U_J4_pre2
- OptiFine_1.21.3_HD_U_J2
- OptiFine_1.21.1_HD_U_J1
- OptiFine_1.21_HD_U_J1_pre9
- OptiFine_1.20.6_HD_U_J1_pre18
- OptiFine_1.20.4_HD_U_I8_pre4
- OptiFine_1.20.2_HD_U_I7_pre1
- OptiFine_1.20.1_HD_U_I6
- OptiFine_1.20_HD_U_I5_pre5
- OptiFine_1.19.4_HD_U_I4
- OptiFine_1.19.3_HD_U_I3
- OptiFine_1.19.2_HD_U_I2
- OptiFine_1.19.1_HD_U_H9
- OptiFine_1.19_HD_U_H9
- OptiFine_1.18.2_HD_U_H9
- OptiFine_1.18.1_HD_U_H6
- OptiFine_1.18_HD_U_H3
- OptiFine_1.17.1_HD_U_H2_pre1
- OptiFine_1.17_HD_U_G9_pre26
- OptiFine_1.16.5_HD_U_G8
- OptiFine_1.16.4_HD_U_G7
- OptiFine_1.16.3_HD_U_G5
- OptiFine_1.14.4_HD_U_G5
- OptiFine_1.14.3_HD_U_F2
- OptiFine_1.12.2_HD_U_G6_pre1
- OptiFine_1.8.9_HD_U_M6_pre2
- OptiFine_1.8.9_HD_U_M5
- OptiFine_1.8.8_HD_U_I7
- OptiFine_1.7.2_HD_U_E3
Known Non-Working Versions
- (None identified yet.)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- HtmlAgilityPack (>= 1.12.1)
- System.Text.Json (>= 9.0.5)
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.1 | 120 | 6/7/2025 |