1
0
mirror of synced 2025-12-25 02:14:57 -05:00

Add CA2009 regression in known issues

This commit is contained in:
Buyaa Namnan
2023-03-09 09:48:45 -08:00
parent f02921d8ad
commit 04fcc38e1c

View File

@@ -4,6 +4,15 @@ You may encounter the following known issues, which may include workarounds, mit
## .NET SDK
### [8.0.100-preview.1.23115.2] analyzer CA2009 throws InvalidCastException at runtime causing build failure
This regression introduced .NET 8 preview 1 for CA2009 `Do not call ToImmutableCollection on an ImmutableCollection value` analyzer. It is [fixed](https://github.com/dotnet/roslyn-analyzers/pull/6476) in preview 2.
**Resolution**
- Please upgrade into .NET 8 preview 2 or above if possible
- Disable the analyzer in .editorconfig: `dotnet_diagnostic.CA2009.severity = none`
## .NET MAUI
For details about known issues, please refer to the individual repositories: