Title: Bug in build.ps1 for template "AzureFunction" · Issue #196 · PowershellFrameworkCollective/PSModuleDevelopment · GitHub
Open Graph Title: Bug in build.ps1 for template "AzureFunction" · Issue #196 · PowershellFrameworkCollective/PSModuleDevelopment
X Title: Bug in build.ps1 for template "AzureFunction" · Issue #196 · PowershellFrameworkCollective/PSModuleDevelopment
Description: Isssue When executing the build.ps1 script, the files "run.ps1" and "function.json" for each function are empty. Tested using PowerShell 7.4.2 Reason Line 31 + 32: $httpCode = Get-Content -Path "$PSScriptRoot\functionHttp\run.ps1" | Join...
Open Graph Description: Isssue When executing the build.ps1 script, the files "run.ps1" and "function.json" for each function are empty. Tested using PowerShell 7.4.2 Reason Line 31 + 32: $httpCode = Get-Content -Path "$P...
X Description: Isssue When executing the build.ps1 script, the files "run.ps1" and "function.json" for each function are empty. Tested using PowerShell 7.4.2 Reason Line 31 + 32: $httpCode = G...
Opengraph URL: https://github.com/PowershellFrameworkCollective/PSModuleDevelopment/issues/196
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in build.ps1 for template \"AzureFunction\"","articleBody":"**Isssue**\r\nWhen executing the build.ps1 script, the files \"run.ps1\" and \"function.json\" for each function are empty.\r\nTested using PowerShell 7.4.2\r\n\r\n**Reason**\r\nLine 31 + 32:\r\n\r\n```PowerShell\r\n$httpCode = Get-Content -Path \"$PSScriptRoot\\functionHttp\\run.ps1\" | Join-String \"`n\"\r\n\r\n$httpConfig = Get-Content -Path \"$PSScriptRoot\\functionHttp\\function.json\" | Join-String \"`n\"\r\n```\r\n\r\nBy using Join-String with positional parameter, the parameter \"Property\" is used.\r\n\r\n**Solution**\r\nCorrect would be \"Seperator\".\r\nTherefore, when you add the parameter name it works:\r\n\r\n```PowerShell\r\n$httpCode = Get-Content -Path \"$PSScriptRoot\\functionHttp\\run.ps1\" | Join-String -Separator \"`n\"\r\n\r\n$httpConfig = Get-Content -Path \"$PSScriptRoot\\functionHttp\\function.json\" | Join-String -Separator \"`n\"\r\n```\r\n\r\nPlease add the parameter name :-) Thank you!","author":{"url":"https://github.com/jklotzsche-msft","@type":"Person","name":"jklotzsche-msft"},"datePublished":"2024-05-28T14:28:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/196/PSModuleDevelopment/issues/196"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4c116450-b1e7-91d4-2b37-64ee189ce256 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DD4:8D142:1BCE581:24C1F2F:696AF42E |
| html-safe-nonce | 16eebcab7fd028c89d563be64181a35e2be70bb016ecb782f0b7caeac4c44914 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REQ0OjhEMTQyOjFCQ0U1ODE6MjRDMUYyRjo2OTZBRjQyRSIsInZpc2l0b3JfaWQiOiI3NTA3ODg4NjQ4MDcwMjk2NjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4a294c9f3124de664405b7b692fa2d4b8a4d12b4674bc1af8a8dccbf1bffae88 |
| hovercard-subject-tag | issue:2321227393 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowershellFrameworkCollective/PSModuleDevelopment/196/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a9b033aa04eb2ab862c06db2f6c22f19b8b7571def671c22526079bf793b47f/PowershellFrameworkCollective/PSModuleDevelopment/issues/196 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a9b033aa04eb2ab862c06db2f6c22f19b8b7571def671c22526079bf793b47f/PowershellFrameworkCollective/PSModuleDevelopment/issues/196 |
| og:image:alt | Isssue When executing the build.ps1 script, the files "run.ps1" and "function.json" for each function are empty. Tested using PowerShell 7.4.2 Reason Line 31 + 32: $httpCode = Get-Content -Path "$P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jklotzsche-msft |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/PowershellFrameworkCollective/PSModuleDevelopment git https://github.com/PowershellFrameworkCollective/PSModuleDevelopment.git |
| octolytics-dimension-user_id | 27423333 |
| octolytics-dimension-user_login | PowershellFrameworkCollective |
| octolytics-dimension-repository_id | 102793445 |
| octolytics-dimension-repository_nwo | PowershellFrameworkCollective/PSModuleDevelopment |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102793445 |
| octolytics-dimension-repository_network_root_nwo | PowershellFrameworkCollective/PSModuleDevelopment |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width