Title: Building PowerShell Core on WSL generates error · Issue #5194 · PowerShell/PowerShell · GitHub
Open Graph Title: Building PowerShell Core on WSL generates error · Issue #5194 · PowerShell/PowerShell
X Title: Building PowerShell Core on WSL generates error · Issue #5194 · PowerShell/PowerShell
Description: FWIW I do seem to get a valid pwsh built and I can run it. So that is good. Steps to reproduce Make sure you're running WSL Xenial 16.04. Install PowerShell Core for Ubuntu 16.04 in WSL Start PowerShell Core in WSL Cd to your Windows clo...
Open Graph Description: FWIW I do seem to get a valid pwsh built and I can run it. So that is good. Steps to reproduce Make sure you're running WSL Xenial 16.04. Install PowerShell Core for Ubuntu 16.04 in WSL Start Power...
X Description: FWIW I do seem to get a valid pwsh built and I can run it. So that is good. Steps to reproduce Make sure you're running WSL Xenial 16.04. Install PowerShell Core for Ubuntu 16.04 in WSL Start P...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5194
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Building PowerShell Core on WSL generates error","articleBody":"FWIW I do seem to get a valid pwsh built and I can run it. So that is good.\r\n\r\nSteps to reproduce\r\n------------------\r\n1. Make sure you're running WSL Xenial 16.04.\r\n2. Install PowerShell Core for Ubuntu 16.04 in WSL\r\n3. Start PowerShell Core in WSL\r\n4. Cd to your Windows clone dir e.g. `cd /mnt/c/GitHub/PowerShell`\r\n5. ipmo ./build.psm1\r\n6. Start-PSBootstrap\r\n7. Start-PSBuild\r\n\r\nBTW this is a darn convenient way to build/test for both Windows and Linux. No need to push your changes to origin so you can pull them to Linux to test.\r\n\r\nExpected behavior\r\n-----------------\r\npwsh builds - no errors.\r\n\r\n\r\nActual behavior\r\n---------------\r\nGet an error:\r\n```none\r\nPowerShell output: /mnt/c/Users/Keith/GitHub/rkeithhill/PowerShell/src/powershell-unix/bin/Linux/netcoreapp2.0/linux-x64/publish/pwsh\r\nCopy-Item : Cannot find path 'C:/Program\r\nFiles/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/Microsoft.CSharp.dll' because it\r\ndoes not exist.\r\nAt /mnt/c/Users/Keith/GitHub/rkeithhill/PowerShell/build.psm1:528 char:9\r\n+ Copy-Item -Path $refAssemblies -Destination $refDestFolder -F ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (C:/Program File...soft.CSharp.dll:String) [Copy-Item], ItemNotFoundExce\r\n ption\r\n + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand\r\n```\r\nSure enough, the powershell.inc file includes a whole bunch of paths that start with `C:\\`.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta.8\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.8\r\nOS Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014\r\nPlatform Unix\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n\r\nBTW the root of the problem is that TypeGen dir - `$PSScriptRoot/src/TypeCatalogGen` - is not platform specific. It probably should be `$PSScriptRoot/src/TypeCatalogGen/$Runtime`. Easiest work-around for now is `Start-PSBuild -Clean`.\r\n","author":{"url":"https://github.com/rkeithhill","@type":"Person","name":"rkeithhill"},"datePublished":"2017-10-21T22:14:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5194/PowerShell/issues/5194"}
| 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:f4ac687a-0836-a55c-a453-6cfedd4c681e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9398:BFC9D:C9069A:1251248:6A58A7ED |
| html-safe-nonce | cfeda67d4352e6adaad6796176b810d24c2a38123085363e7d12bb1d566e50c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mzk4OkJGQzlEOkM5MDY5QToxMjUxMjQ4OjZBNThBN0VEIiwidmlzaXRvcl9pZCI6IjE4OTcwNjg4MzcxNzYxMjU0MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4f2dc916559f6dd044de0b225ad2ea52164c199c6e2e4a9152e009903e85a5ea |
| hovercard-subject-tag | issue:267418221 |
| 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/5194/issue_layout |
| twitter:image | https://opengraph.githubassets.com/25acaedfffbac29e6f6c572ef53639f915097293a86146c0ce6851a00d51aad7/PowerShell/PowerShell/issues/5194 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/25acaedfffbac29e6f6c572ef53639f915097293a86146c0ce6851a00d51aad7/PowerShell/PowerShell/issues/5194 |
| og:image:alt | FWIW I do seem to get a valid pwsh built and I can run it. So that is good. Steps to reproduce Make sure you're running WSL Xenial 16.04. Install PowerShell Core for Ubuntu 16.04 in WSL Start Power... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rkeithhill |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width