/// <summary> /// Static constructor /// </summary> /// <exception cref="SassCompilerLoadException">Failed to load a Sass-compiler.</exception> static SassCompiler() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { try { AssemblyResolver.Initialize(); } catch (InvalidOperationException e) { throw SassErrorHelpers.WrapCompilerLoadException(e); } } }
/// <summary> /// Static constructor /// </summary> /// <exception cref="SassCompilerLoadException">Failed to load a Sass-compiler.</exception> static SassCompiler() { #if !NETSTANDARD if (Utils.IsWindows()) { AssemblyResolver.Initialize(); } #endif try { _version = SassCompilerProxy.GetVersion(); _languageVersion = SassCompilerProxy.GetLanguageVersion(); } catch (DllNotFoundException e) { throw new SassCompilerLoadException(Strings.Runtime_SassCompilerNotLoaded, e); } }