About 107,000 results
Open links in new tab
  1. Compiler Warning (level 2) CS0618 how to fix this - Stack Overflow

    May 30, 2019 · CS0618 appears to be warning you about using an [Obsolete] member. The text accompanying the warning should be very specific about which property

  2. How to ignore compiler warning when using Obsolete attribute on a …

    ///ProductTemplateDataSet is marked with the Obsolete attribute [KnownType(typeof(ProductTemplateDataSet))] public class EntityCollectionBase : …

  3. Disabling OBSOLETE error in C# - Stack Overflow

    Jan 18, 2017 · I am using the Microsoft TFS API and one of the properties on one of the interfaces has been marked as Obsolete and it instructs me to use a different property. Unfortunately the property …

  4. asp.net core - 'IHostingEnvironment' is obsolete - Stack Overflow

    Apr 9, 2019 · Startup.cs (75,50,75,69): warning CS0618: 'IHostingEnvironment' is obsolete: 'This type is obsolete and will be removed in a future version. The recommended alternative is …

  5. Selectively suppress custom Obsolete warnings - Stack Overflow

    Apr 10, 2022 · I'm using the Obsolete attribute (as just suggested by fellow programmers) to show a warning if a certain method is used. Is there a way to suppress the warning similar to CodeAnalysis' …

  6. How to treat the new .NET 8 BCL deprecation warnings not as errors?

    Oct 12, 2024 · The "obsolete"/"deprecated" warnings CS0612 and CS0618 are a special case - their entire purpose is to warn before code will break in a later version, thereby creating a phase during …

  7. How to suppress c# compiler warning in a razor file?

    Jun 6, 2024 · if I suppress it like that in the razor file @{ #pragma warning disable CS0618 } @inject SignOutSessionStateManager SignOutManager @{ #pragma warning restore CS0618 } Visual …

  8. What is the difference between warning codes cs0618 and cs0612

    22 I have seen both of the following warning codes being thrown for utilization of code marked obsolete. cs0618 and cs0612. 0618 is Level 2 and 0612 is level 1 according to the documentation. Does …

  9. c# - CS0618 'SignOutSessionStateManager' is obsolete: 'Use ...

    Nov 10, 2022 · CS0618 'SignOutSessionStateManager' is obsolete: 'Use 'NavigateToLogout' instead. when upgrading Blazor WebAssembly from .NET 6 to .NET 7 Asked 3 years, 1 month ago Modified 3 …

  10. In PDFsharp, the Width and Height of PdfPage appear to be marked ...

    Sep 16, 2024 · Warning (active) CS0618 'XUnit.implicit operator double (XUnit)' is obsolete: 'In PDFsharp 6.1 implicit conversion to double is marked obsolete, because it led to misunderstandings …