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
Issue for #1070 as requested. There is a lot of detail in the description of that PR so I won't duplicate anything that was said there. Here is a minimal example that will reproduce this issue: Solution2.zip
unzip, dotnet restore
Then run roslynator fix <rest of path>/TestProject1.csproj
Load project '<rest of path>/TestProject1.csproj'
Done loading project '<rest of path>/TestProject1.csproj'
Fix 'TestProject1'
Compile 'TestProject1'
Analyze 'TestProject1'
Found 5 diagnostics in 'TestProject1'
Fix 5 RCS1014 'Use explicitly/implicitly typed array.'
UnitTest1.cs(12,13): error CS1501: No overload for method 'Add' takes 10 arguments
Compile 'TestProject1' iteration 2
UnitTest1.cs(12,13): error CS1501: No overload for method 'Add' takes 10 arguments
Analyze 'TestProject1'
Found 3 diagnostics in 'TestProject1'
UnitTest1.cs(12,13): error CS1501: No overload for method 'Add' takes 10 arguments
Fix 3 RCS1014 'Use explicitly/implicitly typed array.'
UnitTest1.cs(12,13): error CS1501: No overload for method 'Add' takes 10 arguments
Compile 'TestProject1' iteration 3
UnitTest1.cs(12,13): error CS1501: No overload for method 'Add' takes 10 arguments
Analyze 'TestProject1'
Found 1 diagnostic in 'TestProject1'
UnitTest1.cs(12,13): error CS1501: No overload for method 'Add' takes 10 arguments
Fix 1 RCS1014 'Use explicitly/implicitly typed array.'
UnitTest1.cs(12,13): error CS1501: No overload for method 'Add' takes 10 arguments
Compile 'TestProject1' iteration 4
UnitTest1.cs(12,13): error CS1501: No overload for method 'Add' takes 10 arguments
Analyze 'TestProject1'
Done fixing project '<rest of path>/TestProject1.csproj' in 00:05.77
Fixed diagnostics:
9 RCS1014 Use explicitly/implicitly typed array.
9 diagnostics fixed
(The resulting UnitTest1.cs won't compile)
Product and Version Used:
MacOS BigSur (Intel), net7.0, the latest version of Roslynator master.
The text was updated successfully, but these errors were encountered:
It's interesting that the bug does not occur when a fix is applied from IDE. So I have a suspicion that the bug is somewhere in Roslynator CLI code that applies the fix. So far I was not able to find it so the custom fix all provider may be the solution.
Issue for #1070 as requested. There is a lot of detail in the description of that PR so I won't duplicate anything that was said there. Here is a minimal example that will reproduce this issue:
Solution2.zip
unzip,
dotnet restore
Then run
roslynator fix <rest of path>/TestProject1.csproj
(The resulting UnitTest1.cs won't compile)
Product and Version Used:
MacOS BigSur (Intel), net7.0, the latest version of Roslynator master.
The text was updated successfully, but these errors were encountered: