Skip to content

Ensure that PlatformCompatibilityAnalyzer better handles various TFMs

Azure Pipelines / roslyn-analyzers-CI (Ubuntu Debug) failed Jan 21, 2025 in 3m 10s

Ubuntu Debug failed

Annotations

Check failure on line 287 in src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzer.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-analyzers-CI (Ubuntu Debug)

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzer.cs#L287

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzer.cs(287,17): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'tfmIdentifier' does not exist in the current context

Check failure on line 284 in src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzer.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-analyzers-CI (Ubuntu Debug)

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzer.cs#L284

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzer.cs(284,20): error IDE0059: (NETCORE_ENGINEERING_TELEMETRY=Build) Unnecessary assignment of a value to 'tfmIdentifer' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0059)