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
Configuration binding source generator throws ArgumentOutOfRangeException on macOS and Linux #89014
When using the Configuration binding source generator to compile and test an application on Linux, macOS and Windows the application fails to compile on Linux and macOS.
Exactly what is causing this I don't know, but I can reproduce it with three different repositories.
The application fails to compile on macOS and Linux with the following exception:
CSC : error CS8785: Generator 'ConfigurationBindingGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'Specified argument was out of the range of valid values. (Parameter 'value')'
Regression?
No.
Known Workarounds
None.
Configuration
.NET SDK 8.0.100-preview.6.23330.14
Other information
No response
Activity
ghost added
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
Still fails, but a slightly different error message:
CSC : error CS8785: Generator 'ConfigurationBindingGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'repeatCount ('-4') must be a non-negative value. (Parameter 'repeatCount') [/home/runner/work/apple-fitness-workout-mapper/apple-fitness-workout-mapper/src/AppleFitnessWorkoutMapper/AppleFitnessWorkoutMapper.csproj]
Activity
vcsjones commentedon Jul 17, 2023
Could be related to #88918
layomia commentedon Jul 17, 2023
Can you try the suggestion here #88918 (comment)?
martincostello commentedon Jul 18, 2023
Still fails, but a slightly different error message:
layomia commentedon Jul 21, 2023
Dup of #88918, fixed by #89150. Please circle back if you still face issues here.