rokstep-analyzers
Install
dotnet add package Rokstep.AnalyzersOr in a csproj:
<PackageReference Include="Rokstep.Analyzers" Version="0.2.0-alpha"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference>What this is
A Roslyn diagnostic analyzer that emits the 42 RKS**** diagnostic IDs at build time for every usage of an obsolete API in the three shim packages. Covers all 42 diagnostic IDs across rokstep-elmah-shims, rokstep-adal-shims, and rokstep-ninject-shims.
Usage
-
Install the shim package (
Rokstep.Elmah.Shims,Rokstep.Adal.Shims, orRokstep.Ninject.Shims). -
Install
Rokstep.Analyzersalongside. -
Build. Every shimmed API emits a diagnostic like:
warning RKSEL0001: ErrorLog.GetDefault() is obsolete. See https://dev.rokstep.eu/migrations/RKSEL0001/ -
Follow the link to the migration guide.