Use language keywords instead of framework type names for type references https://learn.microsoft.com/en-gb/dotnet/fundamentals/code-analysis/style-rules/ide0049
Activity
[-]Enable `IDE0049: PreferBuiltInOrFrameworkType`[/-][+]Fix `IDE0049: PreferBuiltInOrFrameworkType`[/+]xtqqczze commentedon Aug 26, 2025
Enabling
IDE0049only has an effect at design time, not build build time because the rule has internal settingEnforceOnBuild.Never:https://github.com/dotnet/roslyn/blob/b467cfbff565a16d1791a684e28be2ef6b86bf01/src/Analyzers/Core/Analyzers/EnforceOnBuildValues.cs#L140C76-L140C96