var numbers = project.Variables["Range"].Value
.Split('-')
.Select(x => int.Parse(x.Trim()));
var count = numbers.Last() - numbers.First() + 1;
var strings = Enumerable.Range(numbers.First(), count)
.Select(x => x.ToString());
return string.Join(Environment.NewLine, strings);