Package Details: powershell 7.4.1-4

Git Clone URL: https://aur.archlinux.org/powershell.git (read-only, click to copy)
Package Base: powershell
Description: A cross-platform automation and configuration tool/framework (latest release)
Upstream URL: https://github.com/PowerShell/PowerShell
Keywords: .net automation microsoft net powershell script scripting shell
Licenses: MIT
Submitter: jsteel
Maintainer: kylesferrazza (richardba, carsme)
Last Packager: carsme
Votes: 83
Popularity: 1.46
First Submitted: 2016-11-26 22:16 (UTC)
Last Updated: 2024-03-10 11:11 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 18 Next › Last »

cypa commented on 2021-06-14 18:15 (UTC)

this https://github.com/PowerShell/PowerShell/issues/6472

yan12125 commented on 2021-04-15 01:27 (UTC)

Installing https://aur.archlinux.org/packages/ca-certificates-vsign-universal-root/ before building also fixes the build issue.

valandil commented on 2021-04-07 11:27 (UTC)

Indeed. I had an email chat with @richardba, and this bug report came up, which descrbes the workaround you used. It seems that using dotnet restore is broken, and the problem is not explicitly related to the powershell package.

Just need to wait on upstream I believe...

plop28 commented on 2021-04-07 11:17 (UTC) (edited on 2021-04-07 11:17 (UTC) by plop28)

Maybe a fix for certificate expired issue :

downgrade ca-certificates-mozilla to 3.62-1

download the package from https://archive.archlinux.org

sudo pacman -U ca-certificates-mozilla-3.62-1-x86_64.pkg.tar.zst

remove you .nuget folder

then try to rebuild powershell

Works for me, I also installed the latest ca-certificates-mozilla back.

valandil commented on 2021-03-23 01:36 (UTC)

I am trying to build powershell/7.1.3, but the build fails with a bunch of these errors:

/build/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error NU3028: Package 'Microsoft.NETCore.Platforms 2.1.2' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
  Failed to restore /build/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj (in 48.19 sec).

Could this be related to this issue regarding a new cert for NuGet? Does this mean we are blocked from updating until the system ca-certificates is updated?

richardba commented on 2021-01-16 13:11 (UTC)

I am currently trying to update the Version of PowerShell from 7.1.0 to 7.1.1, but I am having some trouble doing so. I am getting some error messages. If anyone wants to try my new PKGBUILD or help with the PKGBUILD, please email me. Here you can find the PKGBUILD. If you have any idea why I am getting the following errors please email me.

/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]

richardba commented on 2020-12-22 09:58 (UTC)

@blallo Please make sure you have installed dotnet 5.0. Judging by your error message you have installed version 3.1. I have already contacted the maintainer of the dotnet package and I will be updating the PKGBUILD to require dotnet-sdk-bin>=5 until a separate package is created for the version of dotnet 5.

blallo commented on 2020-12-22 08:08 (UTC)

When updating, today, I got this error

/usr/share/dotnet/sdk/3.1.108/Microsoft.Common.CurrentVersion.targets(1175,5): error MSB3644: The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/home/leo/.cache/pikaur/build/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj]

richardba commented on 2020-12-22 06:19 (UTC)

PowerShell's version was bumped up version 7.1. Dotnet 5 is required to install PowerShell 7.1

thaun commented on 2020-10-26 10:28 (UTC) (edited on 2020-10-26 10:34 (UTC) by thaun)

I can't seem to install this package when dotnet is already previously installed.

makepkg log: https://gist.github.com/ThomasAunvik/922edcd7b663eb8e72ec051691669194

dotnet --list-sdks

3.1.403 [/usr/share/dotnet/sdk]

Edit: nvm, looks like it was cause i used the install scripts instead of getting from pacman, aka https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script.

rm -rf /usr/share/dotnet basically fixes that.