Custom IEnumarable<T>.Add(IEnumerable<T>)
+ Collection Initalizer causes csc.exe
to crash
#72461
Labels
IEnumarable<T>.Add(IEnumerable<T>)
+ Collection Initalizer causes csc.exe
to crash
#72461
Version Used:
Visual Studio: Version 17.9.2
dotnet: 6.0.419
Steps to Reproduce:
Error MSB6006 "csc.exe" exited with code -2146232797. ClassLibrary2 C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Roslyn\Microsoft.CSharp.Core.targets 84
Diagnostic Id:
IDE0028 Collection initialization can be simplified
Expected Behavior:
[..]
with Enumerable/List of KVP'snew(IEnumerable<KeyValuePair<TKey, TValue>> collection)
constructorActual Behavior:
Notes:
Due to varying Versions of VS between our collogues, and slow updates on the build server, we suspect this Issue arose between VS 17.8 (suspected last known working) and 17.9.2 (current tested).
Windows Event Viewer has the following:
The text was updated successfully, but these errors were encountered: