Cannot build using Powershell Core - 0.9.443 #6663

Closed
opened 2026-01-31 00:44:12 +00:00 by claunia · 3 comments
Owner

Originally created by @tebeco on GitHub (Feb 29, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.113]
Windows Terminal version (if applicable): origin/release-0.9
VS2019 Preview 16.5.0 preview 4

Steps to reproduce

checkout origin/release-0.9
> git reset --hard
> git clean -fdx
> git submodule update --init --recursive
> nuget.exe restore

Steps to reproduce

  • open powershell core (7.0.0-rc3)
  • follow this repo docs

I am supposed to run this :

Import-Module .\tools\OpenConsole.psm1
Set-MsBuildDevEnvironment
Invoke-OpenConsoleBuild

Expected behavior

Build should pass, or doc should be updated

Actual behavior

image
image

i also tried on Powershell DevPrompt for vs2019, the build pass but with weird errors messages

image

This seems not to be listed at the end of the build :
image

Originally created by @tebeco on GitHub (Feb 29, 2020). # Environment ```none Windows build number: Microsoft Windows [Version 10.0.19041.113] Windows Terminal version (if applicable): origin/release-0.9 VS2019 Preview 16.5.0 preview 4 ``` # Steps to reproduce ``` checkout origin/release-0.9 > git reset --hard > git clean -fdx > git submodule update --init --recursive > nuget.exe restore ``` # Steps to reproduce * open powershell core (7.0.0-rc3) * follow this repo docs I am supposed to run this : ```pwsh Import-Module .\tools\OpenConsole.psm1 Set-MsBuildDevEnvironment Invoke-OpenConsoleBuild ``` # Expected behavior Build should pass, or doc should be updated # Actual behavior ![image](https://user-images.githubusercontent.com/2266487/75611158-32551180-5b18-11ea-861a-81720db197f6.png) ![image](https://user-images.githubusercontent.com/2266487/75611263-45b4ac80-5b19-11ea-926f-606d9bd84c6a.png) i also tried on `Powershell DevPrompt for vs2019`, the build pass but with weird errors messages ![image](https://user-images.githubusercontent.com/2266487/75611233-f79fa900-5b18-11ea-8c5d-e031c7f9f8ae.png) This seems not to be listed at the end of the build : ![image](https://user-images.githubusercontent.com/2266487/75611252-1e5ddf80-5b19-11ea-94d5-9c00f339763c.png)
claunia added the Resolution-Duplicate label 2026-01-31 00:44:12 +00:00
Author
Owner

@tebeco commented on GitHub (Feb 29, 2020):

(My point here is that there's probably some update to do to the docs as i managed to make it work, but not "out of the box" :

  • Does not work with powershell 7.x (Powershell Core pwsh.exe)
  • Does not work with powershell 5.1 (one of the latest release of powershell.exe)
  • Only works from the embedded powershell prompt build in for/with Vs2019
    it would be lovelly to have to docs points at this ^^
    image
  • you need to set the switch -Prerelease to Set-MsbuildDevEnvironment to avoid errors
    why not just use $env:VSCMD_VER ?, for example the value for me is 16.5.0-pre.4.0 so you can deduce if it's preview or not from that ? using SemVer parsing
@tebeco commented on GitHub (Feb 29, 2020): (My point here is that there's probably some update to do to the docs as i managed to make it work, but not "out of the box" : * Does not work with powershell 7.x (Powershell Core `pwsh.exe`) * Does not work with powershell 5.1 (one of the latest release of `powershell.exe`) * Only works from the embedded powershell prompt build in for/with Vs2019 it would be lovelly to have to docs points at this ^^ ![image](https://user-images.githubusercontent.com/2266487/75615325-78bf6600-5b42-11ea-9e66-2540579893ba.png) * you need to set the switch `-Prerelease` to `Set-MsbuildDevEnvironment` to avoid errors why not just use `$env:VSCMD_VER` ?, for example the value for me is `16.5.0-pre.4.0` so you can deduce if it's preview or not from that ? using SemVer parsing
Author
Owner

@zadjii-msft commented on GitHub (Mar 2, 2020):

Hey so since you filed three issues that are all fundamentally about "getting the build to work", I'm gonna close these two as a /dup of #4754, since that one has more discussion in it. Thanks!

@zadjii-msft commented on GitHub (Mar 2, 2020): Hey so since you filed three issues that are all fundamentally about "getting the build to work", I'm gonna close these two as a /dup of #4754, since that one has more discussion in it. Thanks!
Author
Owner

@ghost commented on GitHub (Mar 2, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Mar 2, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6663