Exception vnext: sequence contains no elements #269
Labels
bug
Something isn't working
community-feedback
first-timer-friendly
Light and easy start
help wanted
You're welcome to work on it right away
Milestone
Hello,
i noticed that if you delete the folder v.0.00 and execute
vnext --major
it goes in exception saying:Diagnostics stack trace captured a Sequence contains no elements
.I decided to check where it could have generated and found out that at line 152 of
WorkspaceService.cs
in yuniql-core there is:localVersions.First().Major + 1
I think the
first()
is what generates the exception.It would be cool to have the ability to create a major without having to keep the v.0.00 file.
To give you some detail on how this happened:
I wanted to start a repo which began with a major.
To do so i deleted the folder and wanted to create a major release from cli, which caused the exception.
The workaround was to keep v.0.00 and delete it afterwards.
Have a nice day,
a fellow developer 😄
The text was updated successfully, but these errors were encountered: