Add CA2009 regression in known issues
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user