diff --git a/src/Umbraco.Infrastructure/Runtime/RuntimeModeValidators/JITOptimizerValidator.cs b/src/Umbraco.Infrastructure/Runtime/RuntimeModeValidators/JITOptimizerValidator.cs index d075001ecd..98f3b5c2d0 100644 --- a/src/Umbraco.Infrastructure/Runtime/RuntimeModeValidators/JITOptimizerValidator.cs +++ b/src/Umbraco.Infrastructure/Runtime/RuntimeModeValidators/JITOptimizerValidator.cs @@ -19,7 +19,7 @@ public class JITOptimizerValidator : RuntimeModeProductionValidatorBase DebuggableAttribute? debuggableAttribute = Assembly.GetEntryAssembly()?.GetCustomAttribute(); if (debuggableAttribute != null && debuggableAttribute.IsJITOptimizerDisabled) { - validationErrorMessage = "The JIT/runtime optimizer of the entry assembly needs to be enabled in production mode."; + validationErrorMessage = "The JIT/runtime optimizer of the entry assembly needs to be enabled in production mode. The project should be built/published in Release (or similar) configuration in production mode."; return false; }