Title: Referencing System.Management.Automation in .NET Core / VS Code · Issue #2284 · PowerShell/PowerShell · GitHub
Open Graph Title: Referencing System.Management.Automation in .NET Core / VS Code · Issue #2284 · PowerShell/PowerShell
X Title: Referencing System.Management.Automation in .NET Core / VS Code · Issue #2284 · PowerShell/PowerShell
Description: What's the correct way to reference System.Management.Automation? E.g., this snippet from project.json: "dependencies": { "Microsoft.NETCore.App": { "version": "1.0.0", "type": "platform" }, "Microsoft.AspNetCore.Diagnostics": "1.0.0", "...
Open Graph Description: What's the correct way to reference System.Management.Automation? E.g., this snippet from project.json: "dependencies": { "Microsoft.NETCore.App": { "version": "1.0.0", "type": "platform" }, "Micro...
X Description: What's the correct way to reference System.Management.Automation? E.g., this snippet from project.json: "dependencies": { "Microsoft.NETCore.App": { "version": &qu...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2284
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Referencing System.Management.Automation in .NET Core / VS Code","articleBody":"What's the correct way to reference System.Management.Automation? E.g., this snippet from project.json:\n\n```\n \"dependencies\": {\n \"Microsoft.NETCore.App\": {\n \"version\": \"1.0.0\",\n \"type\": \"platform\"\n },\n \"Microsoft.AspNetCore.Diagnostics\": \"1.0.0\",\n \"Microsoft.AspNetCore.Server.IISIntegration\": \"1.0.0\",\n \"Microsoft.AspNetCore.Server.Kestrel\": \"1.0.0\",\n \"Microsoft.Extensions.Logging.Console\": \"1.0.0\",\n \"Microsoft.Extensions.Configuration.EnvironmentVariables\": \"1.0.0\",\n \"Microsoft.Extensions.Configuration.FileExtensions\": \"1.0.0\",\n \"Microsoft.Extensions.Configuration.Json\": \"1.0.0\",\n \"Microsoft.Extensions.Configuration.CommandLine\": \"1.0.0\",\n \"Microsoft.AspNetCore.Routing\": \"1.0.0\",\n \"System.Security.Cryptography.Algorithms\": \"4.2.0\",\n \"System.Management.Automation\": \"6.1.7601.17514\"\n },\n```\n\nWorks when you run **dotnet restore** in that it finds and claims to install the System.Management.Automation dependency (noting that .17515 isn't compatible with .NET Core). But you can't simply add a **using** in the code, or it says:\n\n```\nThe type or namespace name 'Management' does not exist in the namespace 'System'\n```\n\nThe intent here is to programmatically instantiate PowerShell in the code, but .NET Core is a bit restrictive in how it wants references handled...\n","author":{"url":"https://github.com/concentrateddon","@type":"Person","name":"concentrateddon"},"datePublished":"2016-09-16T14:16:01Z","url":"https://github.com/PowerShell/PowerShell/issues/2284"}
| 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:6c68fd05-59f1-def1-7ac1-a809a80abeb7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B78:32A7FA:AAFAD3:F55E20:6AFD9F8A |
| html-safe-nonce | 957e6e989b2448ab1960c0595615da3722395460ee81e2bf9644fa9b60313523 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjc4OjMyQTdGQTpBQUZBRDM6RjU1RTIwOjZBRkQ5RjhBIiwidmlzaXRvcl9pZCI6IjQ1NTQyMTE2MjI1NjU4MTQxNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a654f01d2151ce878514099b777b1b5e7c33d4e04606ab087a6d5e88843b1349 |
| hovercard-subject-tag | issue:177436525 |
| 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/2284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d1eb4cbd30d16e261f13c5461a7ddae642391d13c0cdc96be9405de7773782a/PowerShell/PowerShell/issues/2284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d1eb4cbd30d16e261f13c5461a7ddae642391d13c0cdc96be9405de7773782a/PowerShell/PowerShell/issues/2284 |
| og:image:alt | What's the correct way to reference System.Management.Automation? E.g., this snippet from project.json: "dependencies": { "Microsoft.NETCore.App": { "version": "1.0.0", "type": "platform" }, "Micro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | concentrateddon |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width