diff --git a/Source/Euonia.Mapping.Automapper/AutomapperModule.cs b/Source/Euonia.Mapping.Automapper/AutomapperModule.cs
index 9b6d1c3..0841ca5 100644
--- a/Source/Euonia.Mapping.Automapper/AutomapperModule.cs
+++ b/Source/Euonia.Mapping.Automapper/AutomapperModule.cs
@@ -8,7 +8,9 @@ namespace Nerosoft.Euonia.Mapping;
///
public class AutomapperModule : ModuleContextBase
{
- private const string SERVICE_INJECTION_KEY = "automapper";
+#if NET8_0_OR_GREATER
+ private const string SERVICE_INJECTION_KEY = "automapper";
+#endif
///
public override void ConfigureServices(ServiceConfigurationContext context)
diff --git a/Source/Euonia.Mapping.Mapster/MapsterModule.cs b/Source/Euonia.Mapping.Mapster/MapsterModule.cs
index c10b416..8dc2817 100644
--- a/Source/Euonia.Mapping.Mapster/MapsterModule.cs
+++ b/Source/Euonia.Mapping.Mapster/MapsterModule.cs
@@ -8,7 +8,9 @@ namespace Nerosoft.Euonia.Mapping;
///
public class MapsterModule : ModuleContextBase
{
- private const string SERVICE_INJECTION_KEY = "mapster";
+#if NET8_0_OR_GREATER
+ private const string SERVICE_INJECTION_KEY = "mapster";
+#endif
///
public override void ConfigureServices(ServiceConfigurationContext context)