Title: Build Microsoft.PowerShell.CrossCompatibility for net8 like Engine and Rules · Issue #2300 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Build Microsoft.PowerShell.CrossCompatibility for net8 like Engine and Rules · Issue #2300 · PowerShell/PSScriptAnalyzer
X Title: Build Microsoft.PowerShell.CrossCompatibility for net8 like Engine and Rules · Issue #2300 · PowerShell/PSScriptAnalyzer
Description: Summary of the new feature Since #2073, Engine and Rules target net8;net462 and compile against System.Management.Automation 7.4. Microsoft.PowerShell.CrossCompatibility, which Rules references, still targets netstandard2.0;net462 and co...
Open Graph Description: Summary of the new feature Since #2073, Engine and Rules target net8;net462 and compile against System.Management.Automation 7.4. Microsoft.PowerShell.CrossCompatibility, which Rules references, st...
X Description: Summary of the new feature Since #2073, Engine and Rules target net8;net462 and compile against System.Management.Automation 7.4. Microsoft.PowerShell.CrossCompatibility, which Rules references, st...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2300
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build Microsoft.PowerShell.CrossCompatibility for net8 like Engine and Rules","articleBody":"**Summary of the new feature**\n\nSince #2073, Engine and Rules target `net8;net462` and compile against System.Management.Automation 7.4. Microsoft.PowerShell.CrossCompatibility, which Rules references, still targets `netstandard2.0;net462` and compiles against PowerShellStandard.Library 5.1.1 for the Core build.\n\nThis has two effects:\n\n- PowerShellStandard.Library flows from CrossCompatibility into Rules, next to System.Management.Automation 7.4, so Rules gets two reference assemblies for System.Management.Automation. It only works because the SDK's conflict resolution picks the higher assembly version.\n- Building PSScriptAnalyzer needs PowerShellStandard.Library just for this one project.\n\nThe `netstandard2.0` build lets PSCompatibilityCollector load on any PowerShell 6 or newer. Every supported PowerShell 7 is 7.4 or newer, which runs a `net8` build, and the shipped profiles were last collected for PowerShell 7.0 (#1429).\n\n**Proposed technical implementation details (optional)**\n\nTarget `net8;net462` in CrossCompatibility, with System.Management.Automation for `net8` like Engine:\n\n- `Microsoft.PowerShell.CrossCompatibility.csproj`: `netstandard2.0` becomes `net8`, `PowerShellStandard.Library` becomes `System.Management.Automation`.\n- `PSCompatibilityCollector.psm1` and `PSCompatibilityCollector/build.ps1`: `netstandard2.0` becomes `net8`.\n- `Directory.Packages.props`: drop PowerShellStandard.Library.\n\nThe collector would then need PowerShell 7.4 or newer on Core. Windows PowerShell keeps the `net462` build.\n\nIf you'd rather keep `netstandard2.0`, `PrivateAssets=\"all\"` on the PowerShellStandard.Library reference would at least keep it from flowing into Rules, as it's only needed for compiling.\n\nI can open a PR for either.\n\n**What is the latest version of PSScriptAnalyzer at the point of writing**\n\n1.25.0\n","author":{"url":"https://github.com/ChrisTX","@type":"Person","name":"ChrisTX"},"datePublished":"2026-11-04T20:07:41Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/2300"}
| 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:592935e1-8273-d1f3-749b-ba77c165ead4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCD6:17B0B7:2F638E:3E819B:6AFCE4C7 |
| html-safe-nonce | 9dc662d1a50aa4b1d5c038e8d2a9c52167e713d102109479be47d03c8a83826f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Q2OjE3QjBCNzoyRjYzOEU6M0U4MTlCOjZBRkNFNEM3IiwidmlzaXRvcl9pZCI6IjE4OTY0NDAzODQ2ODcyMzYyOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7dfb6009c6b874997319ac80caf2181893d1bee759fed12c21835f8a65989071 |
| hovercard-subject-tag | issue:6210474694 |
| 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/2300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58bff51e30f1086161b8bee0afabcc5e66cd262dfe81d4e8449cae2a031bcc7c/PowerShell/PSScriptAnalyzer/issues/2300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58bff51e30f1086161b8bee0afabcc5e66cd262dfe81d4e8449cae2a031bcc7c/PowerShell/PSScriptAnalyzer/issues/2300 |
| og:image:alt | Summary of the new feature Since #2073, Engine and Rules target net8;net462 and compile against System.Management.Automation 7.4. Microsoft.PowerShell.CrossCompatibility, which Rules references, st... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ChrisTX |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| 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 | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width