Skip to content

Commit

Permalink
fixed IDE0051.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codespilot committed Dec 13, 2023
1 parent 792a336 commit 39a82f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Source/Euonia.Mapping.Automapper/AutomapperModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ namespace Nerosoft.Euonia.Mapping;
/// </summary>
public class AutomapperModule : ModuleContextBase
{
private const string SERVICE_INJECTION_KEY = "automapper";
#if NET8_0_OR_GREATER
private const string SERVICE_INJECTION_KEY = "automapper";
#endif

/// <inheritdoc />
public override void ConfigureServices(ServiceConfigurationContext context)
Expand Down
4 changes: 3 additions & 1 deletion Source/Euonia.Mapping.Mapster/MapsterModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ namespace Nerosoft.Euonia.Mapping;
/// </summary>
public class MapsterModule : ModuleContextBase
{
private const string SERVICE_INJECTION_KEY = "mapster";
#if NET8_0_OR_GREATER
private const string SERVICE_INJECTION_KEY = "mapster";
#endif

/// <inheritdoc />
public override void ConfigureServices(ServiceConfigurationContext context)
Expand Down

0 comments on commit 39a82f5

Please sign in to comment.