Title: Hosted powershell has no "ref" folder · Issue #11320 · PowerShell/PowerShell · GitHub
Open Graph Title: Hosted powershell has no "ref" folder · Issue #11320 · PowerShell/PowerShell
X Title: Hosted powershell has no "ref" folder · Issue #11320 · PowerShell/PowerShell
Description: I created a hosted PowerShell application in c# with .NET core 3.0 This application executes a PowerShell script using the "powershell-yaml" module. It apparently needs access to the .NET Core assemblies. I get the files published with t...
Open Graph Description: I created a hosted PowerShell application in c# with .NET core 3.0 This application executes a PowerShell script using the "powershell-yaml" module. It apparently needs access to the .NET Core asse...
X Description: I created a hosted PowerShell application in c# with .NET core 3.0 This application executes a PowerShell script using the "powershell-yaml" module. It apparently needs access to the .NET...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11320
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hosted powershell has no \"ref\" folder","articleBody":"I created a hosted PowerShell application in c# with .NET core 3.0\r\nThis application executes a PowerShell script using the \"powershell-yaml\" module. It apparently needs access to the .NET Core assemblies.\r\n\r\nI get the files published with this in my project file:\r\n\r\n```\r\n\u003cCopyRefAssembliesToPublishDirectory>true\u003c/CopyRefAssembliesToPublishDirectory>\r\n```\r\nThis property ensures that a \"refs\" directory is published containing all reference assemblies.\r\n\r\nPowerShell though, looks for a \"ref\" directory:\r\nhttps://github.com/PowerShell/PowerShell/blob/3923ca172854b8f3b00dcd02b0f1829917758f10/src/Microsoft.PowerShell.Commands.Utility/commands/utility/AddType.cs#L614\r\n\r\n# Steps to reproduce\r\n\r\nPublish a c# application referencing System.Management.Automation.dll and have it execute a PowerShell script using the powershell-yaml module.\r\n\r\n# Expected behavior\r\n\r\nI would expect it to look for the \"refs\" folder with is published when enabling the CopyRefAssembliesToPublishDirectory property.\r\n\r\n# Actual behavior\r\n\r\nIt looks for the reference assemblies in \"ref\", which does not exist.\r\n\r\n# Environment data\r\n````json\r\n{\r\n \"PSVersion\": {\r\n \"Major\": 6,\r\n \"Minor\": 2,\r\n \"Patch\": 3,\r\n \"PreReleaseLabel\": null,\r\n \"BuildLabel\": null\r\n },\r\n \"PSRemotingProtocolVersion\": {\r\n \"Major\": 2,\r\n \"Minor\": 3,\r\n \"Build\": -1,\r\n \"Revision\": -1,\r\n \"MajorRevision\": -1,\r\n \"MinorRevision\": -1\r\n },\r\n \"SerializationVersion\": {\r\n \"Major\": 1,\r\n \"Minor\": 1,\r\n \"Build\": 0,\r\n \"Revision\": 1,\r\n \"MajorRevision\": 0,\r\n \"MinorRevision\": 1\r\n },\r\n \"WSManStackVersion\": {\r\n \"Major\": 3,\r\n \"Minor\": 0,\r\n \"Build\": -1,\r\n \"Revision\": -1,\r\n \"MajorRevision\": -1,\r\n \"MinorRevision\": -1\r\n },\r\n \"Platform\": \"Win32NT\",\r\n \"OS\": \"Microsoft Windows 10.0.17763\",\r\n \"GitCommitId\": \"6.2.3\",\r\n \"PSCompatibleVersions\": [\r\n \"1.0\",\r\n \"2.0\",\r\n \"3.0\",\r\n \"4.0\",\r\n \"5.0\",\r\n \"5.1.10032.0\",\r\n \"6.2.3\"\r\n ],\r\n \"PSEdition\": \"Core\"\r\n}\r\n```` ","author":{"url":"https://github.com/Hvid","@type":"Person","name":"Hvid"},"datePublished":"2019-12-11T10:15:31Z","url":"https://github.com/PowerShell/PowerShell/issues/11320"}
| 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:b4c4598c-797e-bd5f-3d78-3dfb7dd014d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA3E:ED1E1:1EF965:29C99A:6AFD4484 |
| html-safe-nonce | f8641145f39386d3ad823bfef20185bfd76f49835774db444dc39fc24602bd72 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTNFOkVEMUUxOjFFRjk2NToyOUM5OUE6NkFGRDQ0ODQiLCJ2aXNpdG9yX2lkIjoiODI5MzgyOTgyODg5Nzc1MjE5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2e51c15d6ef7a70bef1a788cbd70c70638560d80168f042bd403b3859fab26bd |
| hovercard-subject-tag | issue:536271912 |
| 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/11320/issue_layout |
| twitter:image | https://opengraph.githubassets.com/067c003c7552e8d7a9265b2084182f9373f391a183a83fe72dda4c73a74431b1/PowerShell/PowerShell/issues/11320 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/067c003c7552e8d7a9265b2084182f9373f391a183a83fe72dda4c73a74431b1/PowerShell/PowerShell/issues/11320 |
| og:image:alt | I created a hosted PowerShell application in c# with .NET core 3.0 This application executes a PowerShell script using the "powershell-yaml" module. It apparently needs access to the .NET Core asse... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Hvid |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width