Skip to content

Commit f4791a3

Browse files
authored
Fix for name length (#3776)
Fixes #3772 Co-authored-by: freddydk <[email protected]>
1 parent d44c7e7 commit f4791a3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NuGet/Get-BcNuGetPackageId.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Get-BcNuGetPackageId {
4848
$packageIdTemplate = $packageIdTemplate.replace('{id}',$id).replace('{publisher}',$npublisher).replace('{tag}',$tag).replace('{version}',$version.Replace('.', '-')).Replace('..', '.').TrimEnd('.')
4949
# Max. Length of NuGet Package Id is 100 - we shorten the name part of the id if it is too long
5050
$packageId = $packageIdTemplate.replace('{name}',$nname)
51-
if ($packageId.Length -ge 100) {
51+
if ($packageId.Length -gt 100) {
5252
if ($nname.Length -gt ($packageId.Length - 99)) {
5353
$nname = $nname.Substring(0, $nname.Length - ($packageId.Length - 99))
5454
}

ReleaseNotes.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ There are instances where sqlps does not work as expected when it is installed.
44
Issue 1303 from AL-Go repository - renew federated token when access token needs renewal (works only for GitHub at this time)
55
Issue 3590 EarliestMatching select option added to Download-BcNuGetPackageToFolder
66
Regression when from PR 3760 - Push-BcNuGetPackage doesn't work on PowerSHell 5
7+
Issue 3772 Get-BcNuGetPackageId name length limit
78

89
6.0.29
910
Issue 3591 When using Publish-NAVApp to publish an app, which fails compilation in the service, the command might hang forever - the fix for this is a temporary hack put in place for the versions which doesn't work.

0 commit comments

Comments
 (0)