TAGC / dotnet-setversion

.NET Core CLI tool to update the version information in .NET Core *.csproj files
MIT License
75 stars 16 forks source link

trim trailing newline #19

Closed jorisdebock closed 3 years ago

jorisdebock commented 3 years ago

version read from file should be trimmed, due the possible trailing newline character.

e.g.

"0.0.28\n"

this will result in the new line character to be in the csproj file

https://github.com/TAGC/dotnet-setversion/blob/c98adf43eca6aad0a7c703eee55ea3fd9577777d/src/dotnet-setversion/Program.cs#L123

TAGC commented 3 years ago

Sure I'll get that resolved.

TAGC commented 3 years ago

Can you try pulling version 2.2.1-alpha0003 and see if that fixes the issue you're having?