cake-build / cake-build/cake

ParseAssemblyInfo fails when AssemblyInfo contains duplicate lines

Open
#1,171 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
3h 37m
Merged PRs (30d)
21

Description

Came across an AssemblyInfo.cs file containing the following:

```
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif
```

This causes `ParseAssemblyInfo` to fail with 'Error: Sequence contains more than one element'

Contributor guide

Open the contributing guide

Research direction

Locate ParseAssemblyInfo and reproduce the failure with the conditional AssemblyInfo.cs example shown in the issue. Trace how duplicate AssemblyConfiguration lines are handled and add regression coverage; done means this input no longer raises 'Sequence contains more than one element'.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.