Title: What would be the correct TargetProfile for Ubuntu 20.04 runnin PSCore 7.1.3? · Issue #1657 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: What would be the correct TargetProfile for Ubuntu 20.04 runnin PSCore 7.1.3? · Issue #1657 · PowerShell/PSScriptAnalyzer
X Title: What would be the correct TargetProfile for Ubuntu 20.04 runnin PSCore 7.1.3? · Issue #1657 · PowerShell/PSScriptAnalyzer
Description: Reading the UseCompatibleCommands documentation, it says the TargetProfiles should follow the syntax:
Open Graph Description: Reading the UseCompatibleCommands documentation, it says the TargetProfiles should follow the syntax:
X Description: Reading the UseCompatibleCommands documentation, it says the TargetProfiles should follow the syntax: <os-name>_<os-arch>_<os-version>_<ps-version>_<ps-arch>_<dotne...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1657
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"What would be the correct TargetProfile for Ubuntu 20.04 runnin PSCore 7.1.3?","articleBody":"Reading the [UseCompatibleCommands](https://github.com/PowerShell/PSScriptAnalyzer/blob/development/RuleDocumentation/UseCompatibleCommands.md) documentation, it says the `TargetProfiles` should follow the syntax:\r\n\r\n`\u003cos-name>_\u003cos-arch>_\u003cos-version>_\u003cps-version>_\u003cps-arch>_\u003cdotnet-version>_\u003cdotnet-edition>`\r\n\r\nBut it falls short on explaining how to get these values.\r\n\r\nSo, after a little bit of detective work and figuring out which framework version each PowerShell ships with, I come up with the following string:\r\n\r\n`ubuntu_x64_20.04_7.1.3_x64_5.0.220.61302_core`\r\n\r\nThe most painful to figure out is the `5.0.220.61302` part which I assume is the `dotnet-version` PowerShell 7.1.3 ships with. Or does it matter?\r\n\r\nEspecially figuring out the build number is painful because the documentation on the referenced page don't go to explain if `5.0.2` is good enough or should I use the full version `5.0.220.61302`.\r\n\r\nIt's not at all helpful that if I put `'dos_arm_6.1_9.9.9_x64_9999999999_goosfraba'` into `TargetProfiles`, the `Invoke-ScriptAnalyzer` just merrily goes forward as if nothing happened.\r\n\r\n1. Is `ubuntu_x64_20.04_7.1.3_x64_5.0.220.61302_core` good for PSCore 7.1.3 running under Ubuntu 20.04?\r\n2. Could you update the docs when new version of PowerShell is released? It could prove useful if my case was already in the docs so I could just copy/paste it.\r\n3. Would it at all be possible if `Invoke-ScriptAnalyzer` would produce at least a warning message when a profile string like `'dos_arm_6.1_9.9.9_x64_9999999999_goosfraba'` is passed to it?\r\n\r\nYes, the documentation says I could use `PSCompatibilityCollector` but when I go there, there's 0 documentation.","author":{"url":"https://github.com/codepic","@type":"Person","name":"codepic"},"datePublished":"2021-03-30T10:10:33Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1657"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:c812576e-63b1-cd05-e7b4-ee7bb349cd19 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8878:3B38CF:1440EA8:1C8CCFF:6AFCE266 |
| html-safe-nonce | 28737b28c64b91bcc72bc6fd5c7a47086c43548de176e8e90cda6381700a8606 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODc4OjNCMzhDRjoxNDQwRUE4OjFDOENDRkY6NkFGQ0UyNjYiLCJ2aXNpdG9yX2lkIjoiNDk2MDUwNzU1NzMwODA2NDM1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1985d64318e8cd0abd02838bb45d88de541afb42d2a7f8922e67f02f273066ae |
| hovercard-subject-tag | issue:844323276 |
| 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/PowerShell/PSScriptAnalyzer/1657/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9312d8f752ed5a999c99b72dca132830dd382b281a0da6d5340f6bfa7a7691df/PowerShell/PSScriptAnalyzer/issues/1657 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9312d8f752ed5a999c99b72dca132830dd382b281a0da6d5340f6bfa7a7691df/PowerShell/PSScriptAnalyzer/issues/1657 |
| og:image:alt | Reading the UseCompatibleCommands documentation, it says the TargetProfiles should follow the syntax: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | codepic |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0c05b7eb5b95e29725d01bb1f560a020e3fafd0f033c6b9ed3918fa3161254dd |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| 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 | 79d9154e55368884c8c93766ba4fee076343d37f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width