Skip to content

Commit

Permalink
Nuget (#3657)
Browse files Browse the repository at this point in the history
Fix regression after
#3610

---------

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Sep 6, 2024
1 parent c7bbcf4 commit 95e12e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions NuGet/Get-BcNuGetPackageId.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ function Get-BcNuGetPackageId {
if ($nname -eq '') { throw "App name is invalid: '$name'" }
if ($npublisher -eq '') { throw "App publisher is invalid: '$publisher'" }

$version = $version.Replace('..', '.').TrimEnd('.').Replace('.', '-');

$packageIdTemplate = $packageIdTemplate.replace('{id}',$id).replace('{publisher}',$npublisher).replace('{tag}',$tag).replace('{version}',$version)
$packageIdTemplate = $packageIdTemplate.replace('{id}',$id).replace('{publisher}',$npublisher).replace('{tag}',$tag).replace('{version}',$version.Replace('.', '-')).Replace('..', '.').TrimEnd('.')
# Max. Length of NuGet Package Id is 100 - we shorten the name part of the id if it is too long
$packageId = $packageIdTemplate.replace('{name}',$nname)
if ($packageId.Length -ge 100) {
Expand Down
2 changes: 1 addition & 1 deletion Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.21-dev
6.0.21-dev

0 comments on commit 95e12e1

Please sign in to comment.