Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CA2021 false positive casting from value type constraint to Enum or ValueType #7575

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

add some more generic type contraint handling

a5b65ad
Select commit
Loading
Failed to load commit list.
Open

fix CA2021 false positive casting from value type constraint to Enum or ValueType #7575

add some more generic type contraint handling
a5b65ad
Select commit
Loading
Failed to load commit list.
Azure Pipelines / roslyn-analyzers-CI (Ubuntu Debug) failed Feb 18, 2025 in 12m 28s

Ubuntu Debug failed

Annotations

Check failure on line 114 in eng/GenerateAnalyzerNuspec.targets

See this annotation in the file changed.

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

eng/GenerateAnalyzerNuspec.targets#L114

eng/GenerateAnalyzerNuspec.targets(114,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/mnt/vss/_work/1/s/.dotnet/dotnet" --roll-forward major "/mnt/vss/_work/1/s/artifacts/bin/GenerateDocumentationAndConfigFiles/Debug/net9.0/GenerateDocumentationAndConfigFiles.dll" "-validateOnly:true" "/mnt/vss/_work/1/s/artifacts/obj/Microsoft.CodeAnalysis.NetAnalyzers.Package/Debug/netstandard2.0/Rulesets" "/mnt/vss/_work/1/s/artifacts/obj/Microsoft.CodeAnalysis.NetAnalyzers.Package/Debug/netstandard2.0/Editorconfig" "/mnt/vss/_work/1/s/artifacts/obj/Microsoft.CodeAnalysis.NetAnalyzers.Package/Debug/netstandard2.0/GlobalAnalyzerConfigs" "/mnt/vss/_work/1/s/artifacts/bin/" "Debug" "netstandard2.0" "Microsoft.CodeAnalysis.NetAnalyzers.dll;Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll;Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers.dll" "/mnt/vss/_work/1/s/artifacts/obj/Microsoft.CodeAnalysis.NetAnalyzers.Package/Debug/netstandard2.0/Build" "Microsoft.CodeAnalysis.NetAnalyzers.props" "/mnt/vss/_work/1/s/artifacts/obj/Microsoft.CodeAnalysis.NetAnalyzers.Package/Debug/netstandard2.0/Build" "Microsoft.CodeAnalysis.NetAnalyzers.targets" "DisableNETAnalyzersForNuGetPackage.props" "/mnt/vss/_work/1/s/src/NetAnalyzers" "Microsoft.CodeAnalysis.NetAnalyzers.md" "/mnt/vss/_work/1/s/src/NetAnalyzers" "Microsoft.CodeAnalysis.NetAnalyzers.sarif" "10.0.0" Microsoft.CodeAnalysis.NetAnalyzers true true false false" exited with code 134.