From f286fdd855e66ffabb13ee5f3dca217dfdf209e0 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 26 Aug 2020 10:50:31 +0200 Subject: [PATCH] Skip ExamineComposer if not on windows --- src/Umbraco.Infrastructure/Search/ExamineComposer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Umbraco.Infrastructure/Search/ExamineComposer.cs b/src/Umbraco.Infrastructure/Search/ExamineComposer.cs index e22cef685a..9feb9c369f 100644 --- a/src/Umbraco.Infrastructure/Search/ExamineComposer.cs +++ b/src/Umbraco.Infrastructure/Search/ExamineComposer.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Runtime.InteropServices; using Examine; using Umbraco.Core; using Umbraco.Core.Composing; @@ -20,8 +21,13 @@ namespace Umbraco.Web.Search { public override void Compose(Composition composition) { + var isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); + if(!isWindows) return; + base.Compose(composition); + + // populators are not a collection: one cannot remove ours, and can only add more // the container can inject IEnumerable and get them all composition.Register(Lifetime.Singleton);