We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c955c92 commit 779d03bCopy full SHA for 779d03b
NuGet/Get-BcNuGetPackageId.ps1
@@ -49,8 +49,8 @@ function Get-BcNuGetPackageId {
49
# Max. Length of NuGet Package Id is 100 - we shorten the name part of the id if it is too long
50
$packageId = $packageIdTemplate.replace('{name}',$nname)
51
if ($packageId.Length -gt 100) {
52
- if ($nname.Length -gt ($packageId.Length - 99)) {
53
- $nname = $nname.Substring(0, $nname.Length - ($packageId.Length - 99))
+ if ($nname.Length -gt ($packageId.Length - 100)) {
+ $nname = $nname.Substring(0, $nname.Length - ($packageId.Length - 100))
54
}
55
else {
56
throw "Package id is too long: $packageId, unable to shorten it"
0 commit comments