Title: Microsoft.PowerShjell.Commands.Management.dll missing from ref assemblies in SDK · Issue #16141 · PowerShell/PowerShell · GitHub
Open Graph Title: Microsoft.PowerShjell.Commands.Management.dll missing from ref assemblies in SDK · Issue #16141 · PowerShell/PowerShell
X Title: Microsoft.PowerShjell.Commands.Management.dll missing from ref assemblies in SDK · Issue #16141 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/16141
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Microsoft.PowerShjell.Commands.Management.dll missing from ref assemblies in SDK","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nWhen referencing the PowerShell SDK nuget package and trying to use the type Microsoft.PowerShell.Commands.ResolvePathCommand, the assembly is not found.\r\n\r\nThe ref directory is missing Microsoft.PowerShell.Commands.Management.dll, where the type is implemented.\r\n\r\n```\r\n Directory: C:\\Users\\Staffan\\.nuget\\packages\\microsoft.powershell.sdk\\7.2.0-preview.9\\ref\\net6.0\r\n\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\n-a--- 2021-08-18 20:51 134656 Microsoft.PowerShell.Commands.Utility.dll\r\n-a--- 2021-08-18 19:41 576648 Microsoft.PowerShell.Commands.Utility.xml\r\n-a--- 2021-08-18 20:51 7168 Microsoft.PowerShell.ConsoleHost.dll\r\n-a--- 2021-08-18 19:41 166674 Microsoft.PowerShell.ConsoleHost.xml\r\n-a--- 2021-08-18 20:51 397312 System.Management.Automation.dll\r\n-a--- 2021-08-18 19:41 7651228 System.Management.Automation.xml\r\n```\r\n\r\nThe same is true for the ref folder of the Microsoft.PowerShell.Commands.Management nuget package.\r\n```\r\n Directory: C:\\Users\\Staffan\\.nuget\\packages\\microsoft.powershell.commands.management\\7.2.0-preview.9\\ref\\net6.0\r\n\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\n-a--- 2021-08-18 20:51 397312 System.Management.Automation.dll\r\n-a--- 2021-08-18 19:41 7651228 System.Management.Automation.xml\r\n\r\n```\r\n\r\n### Expected behavior\r\n\r\n```console\r\nShould be able to reference the SDK and use types from Microsoft.PowerShell.Commands.Management.\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nBuild error.\r\n```\r\n\r\n\r\n### Error details\r\n\r\n```console\r\nerror CS0246: The type or namespace name 'ResolvePathCommand' could not be found (are you missing a using directive or an assembly reference?)\r\n```\r\n```\r\n\r\n\r\n### Environment data\r\n\r\n```powershell\r\nReferenced the 7.2.0-preview9 SDK.\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/powercode","@type":"Person","name":"powercode"},"datePublished":"2021-09-23T12:58:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/16141/PowerShell/issues/16141"}
| 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:a6517c4b-7d5e-9fa7-abb2-edff9dac67ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BC2:33B84F:345FC9C:47E9D3C:6A54A89A |
| html-safe-nonce | e77611820d55254cdc1677d53ff397fb0710ed8b4e5c8ca472e4e6bd338b1ca7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkMyOjMzQjg0RjozNDVGQzlDOjQ3RTlEM0M6NkE1NEE4OUEiLCJ2aXNpdG9yX2lkIjoiNjYxMTkyODQzNTQzMzcxMTc3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e9a751d75a26642baa3e66ba27bf3b8c616fbb93735b4a34502cb692ddf489a |
| hovercard-subject-tag | issue:1005405048 |
| 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/16141/issue_layout |
| twitter:image | https://opengraph.githubassets.com/52a9fb592a52a12fe343ba83f8681c4559d2a4ac956f3c2d73b4fe0517542770/PowerShell/PowerShell/issues/16141 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/52a9fb592a52a12fe343ba83f8681c4559d2a4ac956f3c2d73b4fe0517542770/PowerShell/PowerShell/issues/16141 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | powercode |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width