Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Cannot build PowerShell from source due to missing microsoft.powershell.psresourceget\1.0.1 #21019

Copy link
Copy link
@sba923

Description

@sba923
Issue body actions

Prerequisites

Steps to reproduce

After a fresh git clone https://github.com/PowerShell/PowerShell.git I cannot build the PowerShell source, due to a missing microsoft.powershell.psresourceget\1.0.1 package.

Expected behavior

Start-PSBuild (invoked from the VScode terminal) should build the tree.

Actual behavior

PS❯ Start-PSBuild
WARNING: The 'dotnet' in the current path can't find SDK version 8.0.100, prepending C:\Users\<REDACTED>\AppData\Local\Microsoft\dotnet to PATH.
VERBOSE: In Find-DotNet
VERBOSE: Executing:  dotnet --list-sdks 
VERBOSE: Find-DotNet: dotnetCLIInstalledVersion = 8.0.100; chosenDotNetVersion = 8.0.100-rtm.23551.15
WARNING: The 'dotnet' in the current path can't find SDK version 8.0.100, prepending C:\Users\<REDACTED>\AppData\Local\Microsoft\dotnet to PATH.
VERBOSE: Using configuration 'Debug'
VERBOSE: Using framework 'net8.0'
VERBOSE: Using runtime 'win7-x64'
VERBOSE: Top project directory is C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core
VERBOSE: Building without shim
Run dotnet publish /property:GenerateFullPaths=true /property:ErrorOnDuplicatePublishOutputFiles=false --self-contained /property:UseRidGraph=true /property:IsWindows=true --configuration Debug --framework net8.0 --runtime win7-x64 /property:SDKToUse=Microsoft.NET.Sdk.WindowsDesktop from C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core
MSBuild version 17.8.3+195e7f5a3 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  PSVersionInfoGenerator -> C:\Users\<REDACTED>\source\repos\PowerShell\src\System.Management.Automation\SourceGenerators\PSVersionInfoGenerator\bin\Debug\netstandard2.0\SMA.Generator.dll
  Microsoft.WSMan.Runtime -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.WSMan.Runtime\bin\Debug\net8.0\Microsoft.WSMan.Runtime.dll
  Microsoft.PowerShell.CoreCLR.Eventing -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.PowerShell.CoreCLR.Eventing\bin\Debug\net8.0\Microsoft.PowerShell.CoreCLR.Eventing.dll
  System.Management.Automation -> C:\Users\<REDACTED>\source\repos\PowerShell\src\System.Management.Automation\bin\Debug\net8.0\System.Management.Automation.dll
  Microsoft.PowerShell.Commands.Diagnostics -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.PowerShell.Commands.Diagnostics\bin\Debug\net8.0\Microsoft.PowerShell.Commands.Diagnostics.dll
  Microsoft.Management.Infrastructure.CimCmdlets -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.Management.Infrastructure.CimCmdlets\bin\Debug\net8.0\Microsoft.Management.Infrastructure.CimCmdlets.dll
  Microsoft.PowerShell.Security -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.PowerShell.Security\bin\Debug\net8.0\Microsoft.PowerShell.Security.dll
  Microsoft.PowerShell.ConsoleHost -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.PowerShell.ConsoleHost\bin\Debug\net8.0\Microsoft.PowerShell.ConsoleHost.dll
  Microsoft.WSMan.Management -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.WSMan.Management\bin\Debug\net8.0\Microsoft.WSMan.Management.dll
  Microsoft.PowerShell.Commands.Utility -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.PowerShell.Commands.Utility\bin\Debug\net8.0\Microsoft.PowerShell.Commands.Utility.dll
  Microsoft.PowerShell.Commands.Management -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.PowerShell.Commands.Management\bin\Debug\net8.0\Microsoft.PowerShell.Commands.Management.dll
  Microsoft.PowerShell.SDK -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.PowerShell.SDK\bin\Debug\net8.0\Microsoft.PowerShell.SDK.dll
  Microsoft.PowerShell.GraphicalHost -> C:\Users\<REDACTED>\source\repos\PowerShell\src\Microsoft.Management.UI.Internal\bin\Debug\net8.0\Microsoft.PowerShell.GraphicalHost.dll
  powershell-win-core -> C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core\bin\Debug\net8.0\win7-x64\pwsh.dll
  powershell-win-core -> C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish\
PowerShell output: C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish\pwsh.exe
Restore PowerShell modules to C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish
WARNING: The 'dotnet' in the current path can't find SDK version 8.0.100, prepending C:\Users\<REDACTED>\AppData\Local\Microsoft\dotnet to PATH.
Name='PowerShellGet', Version='2.2.5', Destination='C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish\Modules'
Name='PackageManagement', Version='1.4.8.1', Destination='C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish\Modules'
Name='Microsoft.PowerShell.PSResourceGet', Version='1.0.1', Destination='C:\Users\<REDACTED>\source\repos\PowerShell\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish\Modules'
Copy-Item: Cannot find path 'C:\Users\<REDACTED>\.nuget\packages\microsoft.powershell.psresourceget\1.0.1' because it does not exist.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.