Bug Report: Skyline.DataMiner.Utils.SecureCoding.Analyzers v2.2.2 built against pre-release Roslyn
Package: NuGet Gallery | Skyline.DataMiner.Utils.SecureCoding.Analyzers 2.2.2 (current latest stable on NuGet)
Environment: Visual Studio 2022 v17.14.29 (stable channel), C# Tools 4.14.0
Issue: When referencing Skyline.DataMiner.Utils.SecureCoding.Analyzers v2.2.2, the following warning is produced on every project build:
CS9057: Analyzer assembly 'Analyzers.dll' cannot be used because it references
version '5.3.0.0' of the compiler, which is newer than the currently running
version '4.14.0.0'.
Root Cause: The analyzer DLL in v2.2.2 was compiled against Roslyn 5.3.0.0, which is a pre-release/insider build of the compiler. No current stable release of VS 2022 ships with Roslyn 5.x. The latest stable VS 2022 (17.14.29) ships with Roslyn 4.14.0.
Impact:
• The analyzer cannot fully load, meaning secure coding rules may not be enforced
• Every project referencing the package produces CS9057 on build
• Previous version 2.2.1 does not have this issue
Request: Please republish a patched version of Skyline.DataMiner.Utils.SecureCoding.Analyzers built against a stable Roslyn 4.x release, or clarify the minimum VS version required for 2.2.2.
Hi Shawn,
Thank you for reporting this issue.
I'd like to inform that a new version (2.2.3) has been released. In this update, Roslyn has been downgraded to version 4.14.0, which should now work properly with VS 2022.
Please don’t hesitate to reach out if you continue to experience any issues with the latest version.
Kind Regards,
Flávio Jacinto
Thanks for the quick resolution and feedback!