Title: Using module statement doesn't work with ScriptsToProcess · Issue #2962 · PowerShell/PowerShell · GitHub
Open Graph Title: Using module statement doesn't work with ScriptsToProcess · Issue #2962 · PowerShell/PowerShell
X Title: Using module statement doesn't work with ScriptsToProcess · Issue #2962 · PowerShell/PowerShell
Description: Steps to reproduce Define PowerShell classes in a script module. Write a test script, Write-Hello.ps1, that returns "Hello World" At the command line, use the Using module statement to import the script module. Expected behavior The clas...
Open Graph Description: Steps to reproduce Define PowerShell classes in a script module. Write a test script, Write-Hello.ps1, that returns "Hello World" At the command line, use the Using module statement to import the s...
X Description: Steps to reproduce Define PowerShell classes in a script module. Write a test script, Write-Hello.ps1, that returns "Hello World" At the command line, use the Using module statement to im...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2962
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using module statement doesn't work with ScriptsToProcess","articleBody":"Steps to reproduce\r\n------------------\r\n1. Define PowerShell classes in a script module.\r\n2. Write a test script, Write-Hello.ps1, that returns \"Hello World\"\r\n3. At the command line, use the Using module statement to import the script module.\r\n\r\nExpected behavior\r\n-----------------\r\nThe classes in the script module are imported into and available in the caller's session.\r\n\r\nActual behavior\r\n---------------\r\nThe classes in the script module are NOT imported into and available in the caller's session.\r\nIf you comment out the ScriptsToProcess key, the classes are correctly imported into the session.\r\n\r\n\r\nEnvironment data\r\n----------------\r\nPS C:\\Program Files\\PowerShell\\6.0.0.14> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nSerializationVersion 1.1.0.1\r\nPSEdition Core\r\nBuildVersion 3.0.0.0\r\nCLRVersion\r\nPSRemotingProtocolVersion 2.3\r\nGitCommitId v6.0.0-alpha.14\r\nWSManStackVersion 3.0\r\nPSVersion 6.0.0-alpha\r\n```\r\n","author":{"url":"https://github.com/juneb","@type":"Person","name":"juneb"},"datePublished":"2017-01-06T01:26:22Z","url":"https://github.com/PowerShell/PowerShell/issues/2962"}
| 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:330772b3-bd0d-e998-6c13-c03c6a3f5854 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE02:3080FC:74FDEA:A3CA26:6AFDC2AC |
| html-safe-nonce | 868b70568e3e494c93ee1027712f17febe6b9b76688e00869ee7b5955617224b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTAyOjMwODBGQzo3NEZERUE6QTNDQTI2OjZBRkRDMkFDIiwidmlzaXRvcl9pZCI6IjEwMjAzOTA0MjA2NDg5MzYxMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a6b5ee0ed3a98491dee8021290cca63fa3a290982a8ca5d3bfd5969e586069bc |
| hovercard-subject-tag | issue:199102819 |
| 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/PowerShell/2962/issue_layout |
| twitter:image | https://opengraph.githubassets.com/968802ac6158761e660f834710d22555f312071e8a820452da248b6132889604/PowerShell/PowerShell/issues/2962 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/968802ac6158761e660f834710d22555f312071e8a820452da248b6132889604/PowerShell/PowerShell/issues/2962 |
| og:image:alt | Steps to reproduce Define PowerShell classes in a script module. Write a test script, Write-Hello.ps1, that returns "Hello World" At the command line, use the Using module statement to import the s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | juneb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35c6bf57da1370dc64866160540c0ee9f825f291935b3bf6ec5492b00e35f3a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | ab48c73a2978548773f5f24717ed9e58508befdb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width