diff --git a/Scintilla.NET/Scintilla.NET.csproj b/Scintilla.NET/Scintilla.NET.csproj index 132e3e4..5fb50d2 100644 --- a/Scintilla.NET/Scintilla.NET.csproj +++ b/Scintilla.NET/Scintilla.NET.csproj @@ -5,7 +5,7 @@ en-US Source Editing Component based on Scintilla 5 series. Copyright (c) Jacob Slusser 2018, VPKSoft, cyber960 2022, desjarlais 2023, Ahmet Sait 2025 - 6.1.0 + 6.1.1 true True true diff --git a/Scintilla.NET/Scintilla.cs b/Scintilla.NET/Scintilla.cs index cce2499..1fdfe7c 100644 --- a/Scintilla.NET/Scintilla.cs +++ b/Scintilla.NET/Scintilla.cs @@ -77,9 +77,9 @@ procName is "devenv" or "DesignToolsServer" or // WinForms app in VS IDE public static IEnumerable EnumerateSatelliteLibrarySearchPaths() { // 1. User configured (must be set before first Scintilla usage) - if (!string.IsNullOrWhiteSpace(SatelliteDirectory)) + if (!string.IsNullOrWhiteSpace(ScintillaNativeLibrary.SatelliteDirectory)) { - yield return SatelliteDirectory; + yield return ScintillaNativeLibrary.SatelliteDirectory; } // 2. check run-time paths @@ -3577,12 +3577,6 @@ public void ClearChangeHistory() #region Properties - /// - /// Optional absolute directory path probed first for native satellite libraries. - /// If set, this directory is checked before all default probing locations. - /// - public static string SatelliteDirectory { get; set; } - /// /// Gets or sets whether Scintilla's native drag & drop should be used instead of WinForms based one. /// diff --git a/Scintilla.NET/ScintillaNativeLibrary.cs b/Scintilla.NET/ScintillaNativeLibrary.cs new file mode 100644 index 0000000..3070711 --- /dev/null +++ b/Scintilla.NET/ScintillaNativeLibrary.cs @@ -0,0 +1,16 @@ +#nullable enable +namespace ScintillaNET; + +/// +/// Provides optional early configuration for locating native satellite libraries (Scintilla.dll, Lexilla.dll). +/// Must be configured BEFORE the type is first touched; otherwise changes have no effect. +/// +public static class ScintillaNativeLibrary +{ + /// + /// Optional absolute directory path probed first for native satellite libraries. + /// If set, this directory is checked before all default probing locations. + /// Example Usage: ScintillaNativeLibrary.SatelliteDirectory = @"C:\MyApp\binaries"; + /// + public static string? SatelliteDirectory { get; set; } +}