Severity: Info
File: src/Servy.Service/Helpers/ServiceHelper.cs lines 1-4
Description:
#if !DEBUG
using Servy.Core.Config;
#endif
using Servy.Core.Config;
using Servy.Core.Data;
...
In Release builds both directives are active, triggering CS0105: The using directive for 'Servy.Core.Config' appeared previously in this namespace. The compiler emits a warning on every Release build. In Debug builds only the unconditional one applies, so the conditional wrapper has no effect either way.
This looks like a leftover from a commit that wanted Servy.Core.Config available only in Release paths; the subsequent unconditional import made the #if !DEBUG block dead code.
Suggested fix:
Remove lines 1-3:
using Servy.Core.Config;
using Servy.Core.Data;
...
Severity: Info
File:
src/Servy.Service/Helpers/ServiceHelper.cslines 1-4Description:
In Release builds both directives are active, triggering
CS0105: The using directive for 'Servy.Core.Config' appeared previously in this namespace. The compiler emits a warning on every Release build. In Debug builds only the unconditional one applies, so the conditional wrapper has no effect either way.This looks like a leftover from a commit that wanted
Servy.Core.Configavailable only in Release paths; the subsequent unconditional import made the#if !DEBUGblock dead code.Suggested fix:
Remove lines 1-3: