If you create a branch named fix-myproject.csproj, git creates an internal marker file named .git\logs\refs\remotes\origin\fix-myproject.csproj contining the SHA-1 of the current commit on the branch.
This causes ##[error]Error reading file: Error: Non-whitespace before first tag. when the step runs on all branches
Workarounds
Rename the branch (fixes all builds on all branches)
Ignore files in .git folder in the tool config (fixes only the current branch
If you create a branch named
fix-myproject.csproj
, git creates an internal marker file named.git\logs\refs\remotes\origin\fix-myproject.csproj contining the SHA-1 of the current commit on the branch.
This causes
##[error]Error reading file: Error: Non-whitespace before first tag.
when the step runs on all branchesWorkarounds