From 92001a28e93ef3911ec28956640fad024d85d01a Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Thu, 25 Sep 2025 23:08:37 +0100 Subject: [PATCH] Disable IDE0049: PreferBuiltInOrFrameworkType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Temporarily disable this rule until all violations are addressed. Not all rule violations were resolved in https://github.com/PowerShell/PowerShell/pull/14491. Since the rulehas internal setting `EnforceOnBuild.Never` it doesn’t affect builds, however it still produces distracting warnings during design-time analysis. https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0049 --- .globalconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.globalconfig b/.globalconfig index a0501d4cfa4..7e345757abf 100644 --- a/.globalconfig +++ b/.globalconfig @@ -1342,7 +1342,7 @@ dotnet_diagnostic.IDE0048.severity = suggestion # IDE0049: PreferBuiltInOrFrameworkType # https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0049 -dotnet_diagnostic.IDE0049.severity = warning +dotnet_diagnostic.IDE0049.severity = suggestion # IDE0050: ConvertAnonymousTypeToTuple # https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0050