You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suppress CS1701/CS1702 binding-redirect warnings from Add-Type on PowerShell Core #132
Add-Type in Sentry.psm1 emits CS1701/CS1702 warnings on PowerShell Core if the host's runtime System.Runtime version doesn't match the one Sentry.dll was compiled against. The binding still succeeds and the module works — these warnings are informational, not failures — but they're noisy and look alarming on every module import:
Add-Type: error CS1701: Assuming assembly reference 'System.Runtime, Version=9.0.0.0, ...' used by 'Sentry' matches identity 'System.Runtime, Version=10.0.0.0, ...' of 'System.Runtime', you may need to supply runtime policy
Pass /nowarn:CS1701;CS1702 via -CompilerOptions to silence the noise while still letting real compile errors surface. -CompilerOptions\ is PowerShell Core only, so guard with \$PSEdition -eq 'Core'.
Activity
linear-code commentedon May 25, 2026
POWERSH-17