Limit length of pre-release suffix
This commit is contained in:
Родитель
7b2c7c224e
Коммит
20bbbe3b12
|
@ -130,6 +130,10 @@ Task("InitializeBuild")
|
|||
else
|
||||
suffix += "-" + AppVeyor.Environment.Repository.Branch;
|
||||
|
||||
// Nuget limits "special version part" to 20 chars. Add one for the hyphen.
|
||||
if (suffix.Length > 21)
|
||||
suffix = suffix.Substring(0, 21);
|
||||
|
||||
packageVersion = version + suffix;
|
||||
teamcityVersion = tcVersion + suffix;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче