Package Details: powershell 7.2.4-1

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)
Last Packager: richardba
Votes: 70
Popularity: 0.044757
First Submitted: 2016-11-26 22:16 (UTC)
Last Updated: 2022-06-03 18:38 (UTC)

Pinned Comments

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.

kylesferrazza commented on 2017-10-26 18:01 (UTC)

Note that the binary is now called "pwsh"

Latest Comments

Synthead commented on 2022-05-19 17:55 (UTC)

Also, can we download releases directly and omit the git build dependency? This will download less data, it'll fetch sources faster, and we'll be able to checksum it :)

https://github.com/PowerShell/PowerShell/releases/tag/v7.2.4

Synthead commented on 2022-05-19 17:50 (UTC)

v7.2.4 is out :)

leewp14 commented on 2022-04-20 06:59 (UTC)

Unable to read data from the transport connection: Connection reset by peer.

If you get this error, can attempt to use powershell-bin. At least it works for me without having to mess with stuffs like the certs or whatsoever.

PowaBanga commented on 2022-01-26 17:25 (UTC)

Building in workspace /var/lib/jenkins/workspace/Repository_x86_64_powershell
The recommended git tool is: NONE
No credentials specified
 > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Repository_x86_64_powershell/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://aur.archlinux.org/powershell.git # timeout=10
Fetching upstream changes from https://aur.archlinux.org/powershell.git
 > git --version # timeout=10
 > git --version # 'git version 2.35.0'
 > git fetch --tags --force --progress -- https://aur.archlinux.org/powershell.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Seen branch in repository origin/master
Seen 1 remote branch
 > git show-ref --tags -d # timeout=10
Checking out Revision 44e63d82b804d7d4ece77703134020fd0bfb0728 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 44e63d82b804d7d4ece77703134020fd0bfb0728 # timeout=10
Commit message: "v7.2.1"
 > git rev-list --no-walk 44e63d82b804d7d4ece77703134020fd0bfb0728 # timeout=10
[Repository_x86_64_powershell] $ /bin/sh -xe /tmp/jenkins2258055242562360853.sh
+ makepkg -cf
==> Création du paquet powershell 7.2.1-1 (mar 25 jan 2022 22:49:39)
==> Vérification des dépendances pour l’exécution…
==> Vérification des dépendances pour la compilation…
==> Récupération des sources…
  -> Mise à jour du dépôt powershell git…
Récupération de origin
Depuis https://github.com/PowerShell/PowerShell
 + d1a2a77ee3...0ccdd09779 update-cgmanifest     -> update-cgmanifest  (mise à jour forcée)
 + 36e0444688...a4ab7ff70b refs/pull/10295/merge -> refs/pull/10295/merge  (mise à jour forcée)
 + b0e14cb347...ca1cbc0ae2 refs/pull/10725/merge -> refs/pull/10725/merge  (mise à jour forcée)
 + a63ba4e206...e256f801a9 refs/pull/13543/merge -> refs/pull/13543/merge  (mise à jour forcée)
 + d1a2a77ee3...0ccdd09779 refs/pull/16437/head  -> refs/pull/16437/head  (mise à jour forcée)
 + 7d57be6192...7db6dbac4a refs/pull/16437/merge -> refs/pull/16437/merge  (mise à jour forcée)
   6f7d61f557..ae3e9e664c  refs/pull/16797/head  -> refs/pull/16797/head
 + d13caf6fe9...774dbe56e9 refs/pull/16797/merge -> refs/pull/16797/merge  (mise à jour forcée)
 * [nouvelle référence]    refs/pull/16800/head  -> refs/pull/16800/head
 * [nouvelle référence]    refs/pull/16800/merge -> refs/pull/16800/merge
  -> Mise à jour du dépôt powershell-native git…
Récupération de origin
  -> Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets trouvé
==> Validation des fichiers source avec sha256sums…
    powershell ... Ignoré
    powershell-native ... Ignoré
    Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets ... Ignoré
==> Extraction des sources…
  -> Création d’une copie de travail du dépot powershell git…
Depuis /var/lib/jenkins/workspace/Repository_x86_64_powershell/powershell
 + d1a2a77ee3...0ccdd09779 update-cgmanifest -> origin/update-cgmanifest  (mise à jour forcée)
Remise à zéro de la branche 'makepkg'
  -> Création d’une copie de travail du dépot powershell-native git…
Basculement sur la nouvelle branche 'makepkg'
==> Lancement de prepare()…
==> Suppression du répertoire $pkgdir/ existant…
==> Lancement de build()…
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '6.0.0' (x64) was not found.
  - The following frameworks were found:
      6.0.0-rc.1.21451.13 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=arch-x64
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…
Build step 'Exécuter un script shell' marked build as failure
Finished: FAILURE

jakebailey commented on 2021-12-27 02:27 (UTC)

Does this package need openssl-1.0? dotnet has been able to use 1.1 (what's in the Arch repos) for a while now, and switching the PKGBUILD doesn't seem to produce a binary that doesn't work. IIRC dotnet programs are smart enough to pick up the newest available one.

jfaulknercourt commented on 2021-11-19 21:46 (UTC) (edited on 2021-11-19 21:48 (UTC) by jfaulknercourt)

Hi all,

I am unable to get the package to build due to the following error: The SDK 'Microsoft.NET.Sdk' specified could not be found.

The MSBuildSDKsPath is set at a global level and I have the latest SDK installed (6.0.0.sdk100-3). I've tried pacman and yay with the same result.

I know I have seen a fix for this before but I'm damned if I can find it again now. Can anyone please indulge me and offer some help?

jeagoss commented on 2021-11-15 21:31 (UTC) (edited on 2021-11-15 21:31 (UTC) by jeagoss)

With the dotnet-core package being updated, I was able to get this package to build with the following PKGBUILD.

https://pastebin.com/4Kq1AfYw

Here is a diff to show what is changed.

https://pastebin.com/YPueeDUJ

kingkingmax commented on 2021-11-03 15:26 (UTC)

I managed to get this package complied. First use yay to get this package downloaed. Second, remove contents from 'source' and 'sha256sums'. Third, update nuget.config file using https://pkgs.dev.azure.com/dnceng/public/_packaging/5.0.100-rtm.20526.5/nuget/v3/index.json. Last, do the PKGBuild again.

tolgon commented on 2021-11-03 11:14 (UTC)

I am also experiencing the same issue as the last 3 comments. Have any of you found a work around?

aabdulrahman commented on 2021-10-30 05:14 (UTC)

@kingkingmax and @pixel1138 I am also receiving this error. The URL listed in the error appears to not exist.

pixel1138 commented on 2021-10-29 01:17 (UTC)

@kingkingmax I also receive this error while attempting to update.

kingkingmax commented on 2021-10-26 08:18 (UTC) (edited on 2021-10-26 08:23 (UTC) by kingkingmax)

I got following error message when attempting to install it.

/usr/share/dotnet/sdk/5.0.402/NuGet.targets(131,5): error : Unable to load the service index for source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/5.0.100-rtm.20526.5/nuget/v3/index.json. [/home/acc1/.cache/yay/powershell/src/powershell/src/ResGen/ResGen.csproj] /usr/share/dotnet/sdk/5.0.402/NuGet.targets(131,5): error : Response status code does not indicate success: 404 (Not Found - The feed with ID '5.0.100-rtm.20526.5' doesn't exist. (DevOps Activity ID: 3E296CD9-CA11-4A9E-A32B-2B8916B374E6)). [/home/acc1/.cache/yay/powershell/src/powershell/src/ResGen/ResGen.cspro

Any suggestion to fix this error?

theeternalsw0rd commented on 2021-08-22 14:14 (UTC)

If you happen to want to install powershell in arch linux when you have arch running as the linux distro for windows subsystem for linux, make sure you sudo chown / root as for some reason, it changes ownership to the standard user. Building powershell will fail in src/powershell-native/src/libpsl-native/test/test-getfileowner.cpp which checks that / is owned by root.

richardba commented on 2021-08-21 13:32 (UTC) (edited on 2021-08-22 04:31 (UTC) by richardba)

For anyone wondering why they cannot find dotnet-sdk-bin version 5.0.9, it is because the maintainers of the package have not yet updated it. In the meantime, you can you the alternative https://aur.archlinux.org/packages/dotnet-sdk-bin. This version bump is required as stated in the release in GitHub.

richardba commented on 2021-07-13 08:34 (UTC)

@jammehcow I can't seem to find anything on the powershell GitHub page about it. You could open an issue in the official GitHub page and leave a link with your issue down below.

jammehcow commented on 2021-07-13 08:10 (UTC)

Installing/building will fail when using a non en_US.UTF-8 locale. If you uncomment that locale in /etc/locale.gen and run locale-gen the build should succeed.

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.

solarkraft commented on 2020-10-23 02:54 (UTC)

I haven't been able to figure out how to get this version into a usable state, it's lacking PowerShellGet (Install-Module) and PSReadline (Tab completion, command repetition). Powershell-bin works.

Kyrios commented on 2020-08-09 20:42 (UTC)

Run yay --editmenu -S powershell to alter the PKBUILD from 7.0.2 to 7.0.3 to manually update to the latest version.

Case_Of commented on 2020-06-11 08:17 (UTC)

Hello, Do anyone know how to install PowerShellGet to be able to use modules from PowerShell Gallery?

Gr3q commented on 2020-04-17 09:09 (UTC) (edited on 2020-04-17 09:10 (UTC) by Gr3q)

@kylesferrazza I'm willing to upload to AUR the specific dotnet SDK versions required for this package.

Let me know if you want me to, but if you do you will need to let me know beforehand next time the required SDK changes.

milesxu commented on 2020-03-30 12:44 (UTC) (edited on 2020-03-30 14:37 (UTC) by milesxu)

Has anyone ever encountered Cannot get symbol numa_node_of_cpu from libnuma error? I have encountered this error with all versions of pwsh 7, on linux kernel 5.5.13-1 and numactl 2.0.13-2

kingkingmax commented on 2020-03-24 07:06 (UTC)

Here is the output of

dotnet --list-runtimes >Microsoft.AspNetCore.App 3.1.2 [/opt/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.3 [/opt/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.1.20124.5 [/opt/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.3.20170.2 [/opt/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.2 [/opt/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.3 [/opt/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-preview.1.20120.5 [/opt/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-preview.3.20169.1 [/opt/dotnet/shared/Microsoft.NETCore.App]

But still failed with powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 3.1.3)

FirstAirBender commented on 2020-03-23 20:39 (UTC) (edited on 2020-03-23 21:05 (UTC) by FirstAirBender)

You need to specify that the dotnet-sdk version has to be 3.1.2 because 3.1.3 for Microsoft.NETCore.App.Runtime.linux-x64/ does not exist in the nuget as you can see here.

I had to manually install the sdk by using the command:

pacman -U https://archive.archlinux.org/packages/d/dotnet-sdk/dotnet-{sdk,host,runtime}-3.1.2.sdk102-1-x86_64.pkg.tar.zst

It may also help to delete those packages from the cache before running the above command

In the end I gave up and just installed the bin version (powershell-bin)

kingkingmax commented on 2020-03-23 13:50 (UTC)

I tried to install this package, but failed with following: /build/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 3.1.3) Then I tried to update dotnet SDK to 3.1.3 (3.1.300-preview-015048), but its still failed with A compatible installed .NET Core SDK for global.json version [3.1.102] from [/home/acc1/.cache/yay/powershell/src/powershell/global.json] was not found

kylesferrazza commented on 2020-03-18 21:00 (UTC) (edited on 2020-03-19 17:12 (UTC) by kylesferrazza)

Waiting on an answer from upstream for the 7.0 update here. If you need 7.0 now, check out powershell-bin:

https://aur.archlinux.org/packages/powershell-bin

EDIT: the package has been updated :)

prg commented on 2020-02-26 17:06 (UTC)

Apparently some of the standard components of powershell are not contained in the Powershell repo, but other repos like:

Does anyone know if this is packaged elsewhere? As a beginner powershell user, I was having a tough time figuring out why "Install-Module" was not working

Obi_Juanb8b commented on 2020-01-25 18:20 (UTC)

Regarding the error message from @DuBistKomisch...I had a similiar error. I think the makedepends may need to be changed. In addition to the 'dotnet-sdk' (which is .NET Core 3) I had to install 'dotnet-sdk-2.2' from community as well. Then when I built this packaged it installed correctly.

DuBistKomisch commented on 2020-01-25 10:07 (UTC)

It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
  - The following frameworks were found:
      3.1.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

do the makedepends need to be more specific?

DDoSolitary commented on 2019-11-29 13:25 (UTC)

@kylesferrazza https://github.com/PowerShell/PowerShell-Native/issues/33

kylesferrazza commented on 2019-11-29 13:23 (UTC)

@DDoSolitary Can you link to the issue you opened upstream?

DDoSolitary commented on 2019-11-29 13:20 (UTC)

@user981257923 I've already opened an issue in the upstream repo (#33), but unfortunately haven't got any response yet and the repo doesn't seem to be actively maintained. A simple way to work this around would be removing the -Werror flag in CMakeLists.txt of that project. However, it is not very ideal because the code will eventually get broken after glibc removes that header.

user981257923 commented on 2019-11-29 12:45 (UTC) (edited on 2019-11-29 12:48 (UTC) by user981257923)

Log:

/usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
   21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
      |  ^~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: powershell

Any way to fix this which doesn't involve upstream?

Case_Of commented on 2019-11-29 11:17 (UTC)

Hello, How to fix the following issue?

[quentin@G1DFXF2 powershell]$ makepkg -sirc
==> Making package: powershell 6.2.3-1 (Fri Nov 29 12:10:50 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (7) dotnet-host-2.2.6+108-1  dotnet-runtime-2.2.6+108-1  jsoncpp-1.9.1-1  libuv-1.33.1-1  rhash-1.3.8-1
             cmake-3.16.0-1  dotnet-sdk-2.2.6+108-1

Total Installed Size:  227.65 MiB

:: Proceed with installation? [Y/n] 
(7/7) checking keys in keyring                                           [########################################] 100%
(7/7) checking package integrity                                         [########################################] 100%
(7/7) loading package files                                              [########################################] 100%
(7/7) checking for file conflicts                                        [########################################] 100%
(7/7) checking available disk space                                      [########################################] 100%
:: Processing package changes...
(1/7) installing jsoncpp                                                 [########################################] 100%
Optional dependencies for jsoncpp
    jsoncpp-doc: documentation
(2/7) installing libuv                                                   [########################################] 100%
(3/7) installing rhash                                                   [########################################] 100%
(4/7) installing cmake                                                   [########################################] 100%
Optional dependencies for cmake
    qt5-base: cmake-gui [installed]
(5/7) installing dotnet-host                                             [########################################] 100%
(6/7) installing dotnet-runtime                                          [########################################] 100%
Optional dependencies for dotnet-runtime
    lttng-ust: CoreCLR tracing
(7/7) installing dotnet-sdk                                              [########################################] 100%
:: Running post-transaction hooks...
(1/3) Updating icon theme caches...
(2/3) Updating the desktop file MIME type cache...
(3/3) Updating the MIME type database...
==> Retrieving sources...
  -> Updating powershell git repo...
Fetching origin
  -> Updating powershell-native git repo...
Fetching origin
  -> Found Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets
==> Validating source files with md5sums...
    powershell ... Skipped
    powershell-native ... Skipped
    Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets ... Passed
==> Extracting sources...
  -> Creating working copy of powershell git repo...
Reset branch 'makepkg'
  -> Creating working copy of powershell-native git repo...
Reset branch 'makepkg'
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
  Restore completed in 41.56 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj.
  Restore completed in 41.58 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj.
  Restore completed in 41.53 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj.
  Restore completed in 49.39 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj.
  Restore completed in 0.93 ms for /home/quentin/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj.
  Restore completed in 0.96 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj.
  Restore completed in 0.96 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj.
  Restore completed in 2.02 ms for /home/quentin/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj.
  Restore completed in 8.47 ms for /home/quentin/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj.
  Restore completed in 64.72 ms for /home/quentin/powershell/src/powershell/src/ResGen/ResGen.csproj.
  Restore completed in 55.13 ms for /home/quentin/powershell/src/powershell/src/TypeCatalogGen/TypeCatalogGen.csproj.
~/powershell/src/powershell/src/ResGen ~/powershell/src/powershell
ResGen for ../Microsoft.PowerShell.Security/gen/CmsCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/SignatureCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/CertificateCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/SecureStringCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/CertificateProviderStrings.cs
ResGen for ../Microsoft.PowerShell.Security/gen/UtilsStrings.cs
ResGen for ../Microsoft.PowerShell.Security/gen/ExecutionPolicyCommands.cs
ResGen for ../Microsoft.PowerShell.Security/gen/SecurityMshSnapinResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Diagnostics/gen/GetEventResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ClearRecycleBinResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/WebServiceResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/HotFixResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/TestPathResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ClipboardResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/CmdletizationResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/TimeZoneResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ControlPanelResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ServiceResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ManagementMshSnapInResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ComputerInfoResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ProcessCommandHelpResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/WmiResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ProcessResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/TransactionResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/EventlogResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/TestConnectionResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/ComputerResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Management/gen/NavigationResources.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/CommandLineParameterParserStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/HostMshSnapinResources.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleHostUserInterfaceStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleHostUserInterfaceSecurityResources.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleHostStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleControlStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ManagedEntranceStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ProgressNodeStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/TranscriptStrings.cs
ResGen for ../Microsoft.PowerShell.ConsoleHost/gen/ConsoleHostRawUserInterfaceStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/WriteProgressResourceStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/FlashExtractStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/HostStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/SelectObjectStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/AddMember.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/CsvCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/AddTypeStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/MeasureObjectStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertMarkdownStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/Debugger.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/SendMailMessageStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/NewObjectStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ImplicitRemotingStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/FormatAndOut_out_gridview.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/SortObjectStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/GetMember.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/HttpCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/AliasCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/UtilityCommonStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/TestJsonCmdletStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertFromStringResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/TraceCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ImmutableStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/GetUptimeStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/VariableCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/UpdateListStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/EventingStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ImportLocalizedDataStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/OutPrinterDisplayStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/WebCmdletStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertFromStringData.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/UtilityMshSnapinResources.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/UpdateDataStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertHTMLStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/MatchStringStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/WriteErrorStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/GetRandomCommandStrings.cs
ResGen for ../Microsoft.PowerShell.Commands.Utility/gen/ConvertStringResources.cs
ResGen for ../System.Management.Automation/gen/ProgressRecordStrings.cs
ResGen for ../System.Management.Automation/gen/RegistryProviderStrings.cs
ResGen for ../System.Management.Automation/gen/PipelineStrings.cs
ResGen for ../System.Management.Automation/gen/ParserStrings.cs
ResGen for ../System.Management.Automation/gen/VerbDescriptionStrings.cs
ResGen for ../System.Management.Automation/gen/TabCompletionStrings.cs
ResGen for ../System.Management.Automation/gen/CredUI.cs
ResGen for ../System.Management.Automation/gen/MshSnapInCmdletResources.cs
ResGen for ../System.Management.Automation/gen/SessionStateProviderBaseStrings.cs
ResGen for ../System.Management.Automation/gen/DebuggerStrings.cs
ResGen for ../System.Management.Automation/gen/WildcardPatternStrings.cs
ResGen for ../System.Management.Automation/gen/DiscoveryExceptions.cs
ResGen for ../System.Management.Automation/gen/PathUtilsStrings.cs
ResGen for ../System.Management.Automation/gen/ConsoleInfoErrorStrings.cs
ResGen for ../System.Management.Automation/gen/CoreClrStubResources.cs
ResGen for ../System.Management.Automation/gen/ProviderBaseSecurity.cs
ResGen for ../System.Management.Automation/gen/Credential.cs
ResGen for ../System.Management.Automation/gen/CoreMshSnapinResources.cs
ResGen for ../System.Management.Automation/gen/FormatAndOutXmlLoadingStrings.cs
ResGen for ../System.Management.Automation/gen/SecuritySupportStrings.cs
ResGen for ../System.Management.Automation/gen/NativeCP.cs
ResGen for ../System.Management.Automation/gen/ParameterBinderStrings.cs
ResGen for ../System.Management.Automation/gen/CatalogStrings.cs
ResGen for ../System.Management.Automation/gen/Metadata.cs
ResGen for ../System.Management.Automation/gen/MiniShellErrors.cs
ResGen for ../System.Management.Automation/gen/ExtendedTypeSystem.cs
ResGen for ../System.Management.Automation/gen/HelpDisplayStrings.cs
ResGen for ../System.Management.Automation/gen/InternalHostStrings.cs
ResGen for ../System.Management.Automation/gen/RunspaceInit.cs
ResGen for ../System.Management.Automation/gen/Modules.cs
ResGen for ../System.Management.Automation/gen/EventingResources.cs
ResGen for ../System.Management.Automation/gen/AutomationExceptions.cs
ResGen for ../System.Management.Automation/gen/RunspaceStrings.cs
ResGen for ../System.Management.Automation/gen/MshSignature.cs
ResGen for ../System.Management.Automation/gen/CredentialAttributeStrings.cs
ResGen for ../System.Management.Automation/gen/HistoryStrings.cs
ResGen for ../System.Management.Automation/gen/CommandBaseStrings.cs
ResGen for ../System.Management.Automation/gen/SessionStateStrings.cs
ResGen for ../System.Management.Automation/gen/Authenticode.cs
ResGen for ../System.Management.Automation/gen/PSCommandStrings.cs
ResGen for ../System.Management.Automation/gen/CmdletizationCoreResources.cs
ResGen for ../System.Management.Automation/gen/HelpErrors.cs
ResGen for ../System.Management.Automation/gen/RunspacePoolStrings.cs
ResGen for ../System.Management.Automation/gen/TransactionStrings.cs
ResGen for ../System.Management.Automation/gen/RemotingErrorIdStrings.cs
ResGen for ../System.Management.Automation/gen/ErrorPackageRemoting.cs
ResGen for ../System.Management.Automation/gen/CimInstanceTypeAdapterResources.cs
ResGen for ../System.Management.Automation/gen/HostInterfaceExceptionsStrings.cs
ResGen for ../System.Management.Automation/gen/MshSnapinInfo.cs
ResGen for ../System.Management.Automation/gen/FormatAndOut_out_xxx.cs
ResGen for ../System.Management.Automation/gen/DescriptionsStrings.cs
ResGen for ../System.Management.Automation/gen/ErrorCategoryStrings.cs
ResGen for ../System.Management.Automation/gen/Serialization.cs
ResGen for ../System.Management.Automation/gen/PSListModifierStrings.cs
ResGen for ../System.Management.Automation/gen/ExperimentalFeatureStrings.cs
ResGen for ../System.Management.Automation/gen/Logging.cs
ResGen for ../System.Management.Automation/gen/AuthorizationManagerBase.cs
ResGen for ../System.Management.Automation/gen/ProxyCommandStrings.cs
ResGen for ../System.Management.Automation/gen/InternalCommandStrings.cs
ResGen for ../System.Management.Automation/gen/SuggestionStrings.cs
ResGen for ../System.Management.Automation/gen/EnumExpressionEvaluatorStrings.cs
ResGen for ../System.Management.Automation/gen/EtwLoggingStrings.cs
ResGen for ../System.Management.Automation/gen/FormatAndOut_format_xxx.cs
ResGen for ../System.Management.Automation/gen/MshHostRawUserInterfaceStrings.cs
ResGen for ../System.Management.Automation/gen/ErrorPackage.cs
ResGen for ../System.Management.Automation/gen/FileSystemProviderStrings.cs
ResGen for ../System.Management.Automation/gen/InternalHostUserInterfaceStrings.cs
ResGen for ../System.Management.Automation/gen/TypesXmlStrings.cs
ResGen for ../System.Management.Automation/gen/PowerShellStrings.cs
ResGen for ../System.Management.Automation/gen/FormatAndOut_MshParameter.cs
ResGen for ../System.Management.Automation/gen/PSDataBufferStrings.cs
ResGen for ../System.Management.Automation/gen/EventResource.cs
ResGen for ../System.Management.Automation/gen/GetErrorText.cs
ResGen for ../Microsoft.PowerShell.ScheduledJob/gen/ScheduledJobErrorStrings.cs
ResGen for ../Microsoft.PowerShell.CoreCLR.Eventing/gen/DotNetEventingStrings.cs
ResGen for ../Microsoft.WSMan.Management/gen/WsManResources.cs
ResGen for ../Microsoft.Management.Infrastructure.CimCmdlets/gen/Microsoft.Management.Infrastructure.CimCmdlets.Strings.cs
ResGen for ../Microsoft.PowerShell.LocalAccounts/gen/Microsoft.PowerShell.LocalAccounts.Strings.cs
~/powershell/src/powershell
~/powershell/src/powershell/src/TypeCatalogGen ~/powershell/src/powershell
~/powershell/src/powershell
~/powershell/src/powershell-native/src/libpsl-native ~/powershell/src/powershell
CMake Warning (dev) at CMakeLists.txt:2 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    CMAKE_PROJECT_VERSION
    CMAKE_PROJECT_VERSION_MAJOR
    CMAKE_PROJECT_VERSION_MINOR
    CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Tests enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/quentin/powershell/src/powershell-native/src/libpsl-native
[  1%] Building CXX object src/CMakeFiles/psl-native.dir/issymlink.cpp.o
[  3%] Building CXX object src/CMakeFiles/psl-native.dir/isexecutable.cpp.o
[  5%] Building CXX object src/CMakeFiles/psl-native.dir/getuserfrompid.cpp.o
[  7%] Building CXX object src/CMakeFiles/psl-native.dir/getppid.cpp.o
[  9%] Building CXX object src/CMakeFiles/psl-native.dir/issamefilesystemitem.cpp.o
[ 13%] Built target gtest
[ 15%] Building CXX object src/CMakeFiles/psl-native.dir/setdate.cpp.o
[ 16%] Building CXX object test/googletest/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 18%] Building CXX object src/CMakeFiles/psl-native.dir/createhardlink.cpp.o
[ 20%] Building CXX object test/googletest/googlemock/gtest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
In file included from /home/quentin/powershell/src/powershell-native/src/libpsl-native/src/getppid.cpp:11:
/usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
   21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
      |  ^~~~~~~
[ 22%] Building CXX object src/CMakeFiles/psl-native.dir/createsymlink.cpp.o
[ 24%] Building CXX object src/CMakeFiles/psl-native.dir/followsymlink.cpp.o
In file included from /home/quentin/powershell/src/powershell-native/src/libpsl-native/src/getuserfrompid.cpp:15:
/usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
   21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
      |  ^~~~~~~
[ 26%] Building CXX object src/CMakeFiles/psl-native.dir/createprocess.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/psl-native.dir/build.make:141: src/CMakeFiles/psl-native.dir/getppid.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 28%] Building CXX object src/CMakeFiles/psl-native.dir/nativesyslog.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/psl-native.dir/build.make:154: src/CMakeFiles/psl-native.dir/getuserfrompid.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:177: src/CMakeFiles/psl-native.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 30%] Linking CXX static library /home/quentin/powershell/src/powershell-native/src/powershell-unix/libgtest_main.a
[ 30%] Built target gtest_main
[ 32%] Linking CXX static library /home/quentin/powershell/src/powershell-native/src/powershell-unix/libgmock.a
[ 32%] Built target gmock
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> Removing installed dependencies...
checking dependencies...

Packages (7) cmake-3.16.0-1  dotnet-host-2.2.6+108-1  dotnet-runtime-2.2.6+108-1  dotnet-sdk-2.2.6+108-1
             jsoncpp-1.9.1-1  libuv-1.33.1-1  rhash-1.3.8-1

Total Removed Size:  227.65 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/7) removing dotnet-sdk                                                [########################################] 100%
(2/7) removing dotnet-runtime                                            [########################################] 100%
(3/7) removing dotnet-host                                               [########################################] 100%
(4/7) removing cmake                                                     [########################################] 100%
(5/7) removing rhash                                                     [########################################] 100%
(6/7) removing libuv                                                     [########################################] 100%
(7/7) removing jsoncpp                                                   [########################################] 100%
:: Running post-transaction hooks...
(1/3) Updating icon theme caches...
(2/3) Updating the desktop file MIME type cache...
(3/3) Updating the MIME type database...

marcoh00 commented on 2019-11-05 20:18 (UTC)

I'm unable to build this package (6.2.3-1) - the build() step always fails with:

cp: cannot create regular file 'src/Microsoft.PowerShell.SDK/obj/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets': No such file or directory

Is anyone else experiencing the same problem?

kylesferrazza commented on 2019-10-28 17:12 (UTC)

@skypixel

I agree it would make sense to package OneGet with this package. I am currently working on adding it to the build. I would appreciate a patch if you have the time to work on it before I get to it.

DDoSolitary commented on 2019-10-27 17:21 (UTC)

Hello, I'm unable to run pwsh after building&installing this package. It says:

Error:
  An assembly specified in the application dependencies manifest (pwsh.deps.json) was not found:
    package: 'Markdig.Signed', version: '0.17.1'
    path: 'lib/netcoreapp2.1/Markdig.Signed.dll'

skypixel commented on 2019-10-13 09:58 (UTC)

For those wondering, Install-Module doesn't work because OneGet is not included in this package (see https://github.com/PowerShell/PowerShell/issues/6472#issuecomment-375997500 ). @kylesferrazza is there any reason why OneGet is not included? Wouldn't it make sense to make it available since it's the main means to install external modules?

kylesferrazza commented on 2019-09-12 21:34 (UTC) (edited on 2019-09-12 21:44 (UTC) by kylesferrazza)

@agowa338

That patch breaks the build for me:

$ pwsh
Error:
  An assembly specified in the application dependencies manifest (pwsh.deps.json) was not found:
    package: 'runtime.linux-x64.Microsoft.NETCore.App', version: '2.1.12'
    path: 'runtimes/linux-x64/native/System.IO.Compression.Native.a'

agowa338 commented on 2019-07-28 23:09 (UTC)

The wrong folder gets copied, therefore some dependencies are fetched from the nuget cache after the package is installed. If you now try to run pwsh from any other user it will fail, as the nuget cache is no longer accessible (belongs to the build user). Same happens if you move the final package to a remote system, install and try to run it. (The global‑packages cache is located at ~/.nuget)

This can be fixed by:

diff --git a/PKGBUILD b/PKGBUILD
index 4991b8d..6daa85e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -80,18 +80,18 @@ package() {
   cd "$pkgname/src/powershell-unix"

   mkdir -p "$pkgdir/usr/lib/$pkgname"
-  cp -a "bin/Linux/netcoreapp2.1/linux-x64" "$pkgdir/usr/lib/$pkgname"
-  chmod 755 "$pkgdir/usr/lib/$pkgname/linux-x64/$binaryname"
+  cp -aR "bin/." "$pkgdir/usr/lib/$pkgname"
+  chmod 755 "$pkgdir/usr/lib/$pkgname/$binaryname"

   mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
   cp "../../LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

   mkdir -p "$pkgdir/usr/bin"
-  ln -s "/usr/lib/$pkgname/linux-x64/$binaryname" "$pkgdir/usr/bin/$binaryname"
+  ln -s "/usr/lib/$pkgname/$binaryname" "$pkgdir/usr/bin/$binaryname"

   chmod 644 \
-    "$pkgdir/usr/lib/powershell/linux-x64/libhostfxr.so" \
-    "$pkgdir/usr/lib/powershell/linux-x64/libhostpolicy.so" \
-    "$pkgdir/usr/lib/powershell/linux-x64/en-US/default.help.txt" \
-    "$pkgdir/usr/lib/powershell/linux-x64/Modules/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1"
+    "$pkgdir/usr/lib/$pkgname/libhostfxr.so" \
+    "$pkgdir/usr/lib/$pkgname/libhostpolicy.so" \
+    "$pkgdir/usr/lib/$pkgname/en-US/default.help.txt" \
+    "$pkgdir/usr/lib/$pkgname/Modules/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1"
 }

sogaiu commented on 2019-06-15 04:11 (UTC) (edited on 2019-06-15 04:12 (UTC) by sogaiu)

Following up on earlier comments (e.g. having to do with PSReadLine), here is some info comparing the -bin and vanilla packages (at least as of version 6.2.1-1):

The output of Get-Module -listavailable for the powershell-bin package (6.2.1-1) is (sorry for the truncation):

ModuleType Version    Name                                PSEdition ExportedCommands
---------- -------    ----                                --------- ----------------
Manifest   1.2.3.0    Microsoft.PowerShell.Archive        Desk      {Compress-Archive, Expa…
Manifest   6.1.0.0    Microsoft.PowerShell.Host           Core      {Start-Transcript, Stop…
Manifest   6.1.0.0    Microsoft.PowerShell.Management     Core      {Add-Content, Clear-Con…
Manifest   6.1.0.0    Microsoft.PowerShell.Security       Core      {Get-Credential, Get-Ex…
Manifest   6.1.0.0    Microsoft.PowerShell.Utility        Core      {Export-Alias, Get-Alia…
Script     1.3.2      PackageManagement                   Desk      {Find-Package, Get-Pack…
Script     2.1.3      PowerShellGet                       Desk      {Find-Command, Find-DSC…
Script     0.0        PSDesiredStateConfiguration         Desk      {AddDscResourceProperty…
Script     2.0.0      PSReadLine                          Desk      {Get-PSReadLineKeyHandl…
Binary     1.1.2      ThreadJob                           Desk      Start-ThreadJob

while for this package, I saw:

ModuleType Version    Name                                PSEdition ExportedCommands
---------- -------    ----                                --------- ----------------
Manifest   6.1.0.0    Microsoft.PowerShell.Host           Core      {Start-Transcript, Stop…
Manifest   6.1.0.0    Microsoft.PowerShell.Management     Core      {Add-Content, Clear-Con…
Manifest   6.1.0.0    Microsoft.PowerShell.Security       Core      {Get-Credential, Get-Ex…
Manifest   6.1.0.0    Microsoft.PowerShell.Utility        Core      {Export-Alias, Get-Alia…
Script     0.0        PSDesiredStateConfiguration         Desk      {ValidateNodeResourceSo…

Not sure if it's related, but the issue tracker for powershell, came across:

https://github.com/PowerShell/PowerShell/issues/9005

May be some of these bits can help the current situation.

xopher_mc commented on 2019-05-25 10:36 (UTC)

For those having the locale problem make sure that the en_US.UTF-8 is uncommented in /etc/locale.gen. Then run as root locale-gen. The problem is that the locale must exist to be switched to, even if it isn't the locale you are usually using.

sengle commented on 2019-05-14 22:49 (UTC) (edited on 2019-05-14 22:51 (UTC) by sengle)

Sorry I missed what you were saying about PSReadLine not being in the build. Here is what I did as a workaround.

1) Download the archive from Github.

https://github.com/PowerShell/PowerShell/releases/download/v6.2.0/powershell-6.2.0-linux-x64.tar.gz

2) Extract PSReadLine from the Modules directory of the archive to the /usr/lib/powershell/linux-x64/Modules directory.

sudo tar -C /usr/lib/powershell/linux-x64 -xvf powershell-6.2.0-linux-x64.tar.gz ./Modules/PSReadLine

3) Now if you restart pwsh it should work fine or you can manually import the module and enable tab completion.

Import-Module PSReadLine

Set-PSReadLineKeyHandler -Key Tab -Function Complete

Hope this helps until the build is fixed.

kylesferrazza commented on 2019-04-28 14:22 (UTC)

@bdurbin Not sure why PSReadline isn't part of the build process but I'm happy to look into it or accept a patch if you figure it out before I do.

bdurbin commented on 2019-04-28 02:29 (UTC)

Just curious, but why is PSReadline not in this package, yet it's in powershell-bin? I can try to find some time to investigate, but I thought I'd ask.

FranklinYu commented on 2019-02-23 04:14 (UTC)

@DragonX256 There is only one commit for version 6.1.3 in Git log. There is probably something wrong with your package manager if it builds 6.1.3 twice. Please report to Yay instead of here.

DragonX256 commented on 2019-02-23 04:03 (UTC)

Isn't this package shouldn't have been built like powershell-git? It should built only once. On my system with yay package manager it already built 6.1.3-1 version two times because of new commits in repo.

lainpants commented on 2018-11-28 05:56 (UTC)

@luka-devnull Just upgraded and also noticed the missing PSReadLine. Really hurts using powershell without it...

kylesferrazza commented on 2018-10-08 23:21 (UTC)

@ajkerzner good catch, I will add it to the makedepends

ajkerzner commented on 2018-10-06 11:04 (UTC)

FYI - this package depends on patch, but it's not a listed dependency.

luka-devnull commented on 2018-10-04 07:39 (UTC)

The new package isn't building PSReadLine for me. Kind of a nice thing to have.

Anyone else having that issue?

FranklinYu commented on 2018-10-04 04:29 (UTC)

@kylesferrazza Sorry, not familiar with Pester. I thought it was drop-in replacement.

kylesferrazza commented on 2018-09-30 18:03 (UTC)

@FranklinYu are you familiar with Pester?

I would gladly accept a patch to use the new unbundled Pester for testing.

Dargmuesli commented on 2018-09-14 00:34 (UTC)

v6.1.0 just got released :)

FranklinYu commented on 2018-09-05 20:34 (UTC)

psl-pester is deprecated in favor of Pester.

kylesferrazza commented on 2018-07-29 15:19 (UTC)

@nomad980 @anakha I will be back from vacation this Tuesday night and will look into updating to 6.0.3 and the error you bring up.

nomad980 commented on 2018-07-29 11:38 (UTC)

@kylesferrazza : I want to thank you for your work on making this available to us. Also wonder wondering when the 6.0.3 update would be happening or if you are waiting for 6.1.0 to come out of preview?

anakha commented on 2018-07-23 18:57 (UTC) (edited on 2018-07-23 18:58 (UTC) by anakha)

Build fails on 4.14.54-1-MANJARO #1 SMP PREEMPT Sun Jul 8 19:14:13 UTC 2018 x86_64 GNU/Linux

with:

aur-powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error : Project is targeting runtime 'arch-x64' but did not resolve any runtime-specific packages. This runtime may not be supported by the target framework.

powershell-bin package seems to install without any issues however.

Thank you for making this package.

kylesferrazza commented on 2018-07-22 01:59 (UTC)

I will update for 6.0.3 tomorrow night.

kylesferrazza commented on 2018-06-13 17:23 (UTC)

@Anaximander

Great!

Anaximander commented on 2018-06-13 17:22 (UTC) (edited on 2018-06-13 17:23 (UTC) by Anaximander)

removed pkg, downloaded the snapshot, verified dotnet-version.patch contained 2.1.300. Ran makepkg, install proceed. got to Build Target psl-native-test Started check and failed. Google -- looks like a locale issue.

Checked my locale, and it is not set correctly. Verified /etc/locale.gen -- set correctly. Verified /etc/locale.conf -- nothing. Create it, set to proper locale. restart.

Locale is now correct.

makepkg -- build target psl-native-test -- success.

Profit!

kylesferrazza commented on 2018-06-13 17:04 (UTC)

The dotnet version issues should now be fixed.

@Anaximander @allenhs @krprescott Let me know if the latest PKGBUILD fixes the build issues you were having.

kylesferrazza commented on 2018-06-13 15:28 (UTC)

@Anaximander @allenhs @krprescott

I fixed the dotnet version issue by adding the trailing zeroes in global.json (2.1.300). I encountered another problem in the build process and I'm waiting for a response from upstream. I will keep this page updated as I hear back.

https://github.com/PowerShell/PowerShell/issues/7057

Anaximander commented on 2018-06-13 13:35 (UTC) (edited on 2018-06-13 13:46 (UTC) by Anaximander)

Same situation as krprescott: Installed -- (dotnet-host [2.1.0-3]) (dotnet-runtime [2.1.0-3]) (dotnet-sdk [2.1.300-2])

A compatible SDK version for global.json version: [2.1.3] from [/tmp/trizen-user/powershell/src/powershell/global.json] was not found Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409 ==> ERROR: A failure occurred in build(). Aborting... :: Unable to build powershell - makepkg exited with code: 4

==========

Attempted to edit the dotnet-version.patch while trizen was installing, that results in validity check error.

==========

I cloned the package and attempted a manual install. Before initiating the makepkg, I edited dotnet-version.patch from 2.1.3 to 2.1.*; I then updated the file hashes in the pkgbuild. makepkg then generates this error:

The specified SDK version '2.1.*' could not be parsed A compatible SDK version for global.json version: [2.1.*] from [/home/chris/packages/powershell/src/powershell/global.json] was not found Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

I'm now past my knowledge to troubleshoot this.

allenhs commented on 2018-06-12 05:38 (UTC)

I get the same error as krprescott.

A compatible SDK version for global.json version: [2.1.3] from [/tmp/trizen-user/powershell/src/powershell/global.json] was not found Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

krprescott commented on 2018-06-02 14:04 (UTC)

I get errors when building this package. Here is the dotnet packages I have installed: dotnet-host 2.1.0-1 dotnet-runtime 2.1.0-1 dotnet-sdk 2.1.300-1 Here is the build information: Starting build()... A compatible SDK version for global.json version: [2.1.3] from [/home/kprescott/powershell/src/powershell/global.json] was not found Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409 ==> ERROR: A failure occurred in build(). Aborting...

kylesferrazza commented on 2018-05-14 14:50 (UTC) (edited on 2018-05-14 14:51 (UTC) by kylesferrazza)

@octav, let me know if it runs for you with env TERM=xterm pwsh

eddyready commented on 2018-05-12 10:28 (UTC)

Hi, I am getting the following download errors from Nuget

/opt/dotnet/sdk/2.1.105/NuGet.targets(104,5): error : Failed to download package 'runtime.linux-x64.Microsoft.NETCore.App.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/runtime.linux-x64.microsoft.netcore.app/2.0.0/runtime.linux-x64.microsoft.netcore.app.2.0.0.nupkg'.

/opt/dotnet/sdk/2.1.105/NuGet.targets(104,5): error : Failed to download package 'runtime.linux-x64.Microsoft.NETCore.App.2.0.0' from 'https://api.nuget.org/v3-flatcontainer/runtime.linux-x64.microsoft.netcore.app/2.0.0/runtime.linux-x64.microsoft.netcore.app.2.0.0.nupkg'.

octav commented on 2018-05-10 19:36 (UTC)

Hi, my build finishes with no errors but pwsh crashes. Please help. I have no idea where to dig in.

[octav@octav-nb ~]$ sudo pwsh PowerShell v6.0.2 Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs Type 'help' to get help.

FailFast: The terminfo database is invalid.

at System.Environment.FailFast(System.String, System.Exception) at System.Environment.FailFast(System.String, System.Exception) at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String, System.String[], Int32) at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[]) Aborted [octav@octav-nb ~]$

eliohann commented on 2018-03-24 12:41 (UTC)

Hi,

There is no install-module cmdlet present. I did post on official github and can you take a look to the answer : https://github.com/PowerShell/PowerShell/issues/6472

So you can modify your build to let us have access to install-module

kylesferrazza commented on 2018-03-19 16:39 (UTC)

I added the TERM fix to the PKGBUILD until the problem is fixed upstream.

cortiz commented on 2018-03-19 14:48 (UTC)

Add TERM=xterm $srcdir/build.sh if build fails, looks like it's a ncurses 6.1+ in the dotnet corefx

simona commented on 2018-03-16 08:29 (UTC)

MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. System.InvalidOperationException: The terminfo database is invalid. [...] at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\82\s\src\MSBuild\XMake.cs:line 755 at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args) in E:\A_work\82\s\src\MSBuild\XMake.cs:line 216

nrh1703 commented on 2018-02-28 22:59 (UTC)

There is a warning that suggests a language problem:

/usr/bin/sh : warning : setlocale: LC_ALL: cannot change locale (en_US.UTF-8) [/tmp/yaourt-tmp-myuser/aur-powershell/src/powershell/src/powershell-unix/powershell-unix.csproj]

Which resulted in the following build errors:

MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. System.InvalidOperationException: The terminfo database is invalid. at System.TermInfo.Database..ctor(String term, Byte[] data) at System.TermInfo.Database.ReadDatabase(String term, String directoryPath) at System.TermInfo.Database.ReadDatabase(String term) at System.TermInfo.Database.ReadActiveDatabase() at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at System.ConsolePal.EnsureInitializedCore() at System.ConsolePal.ControlCHandlerRegistrar.Register() at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 526

Unhandled Exception: System.InvalidOperationException: The terminfo database is invalid. at System.TermInfo.Database..ctor(String term, Byte[] data) at System.TermInfo.Database.ReadDatabase(String term, String directoryPath) at System.TermInfo.Database.ReadDatabase(String term) at System.TermInfo.Database.ReadActiveDatabase() at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at System.ConsolePal.EnsureInitializedCore() at System.ConsolePal.ControlCHandlerRegistrar.Register() at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 748 at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 215

I resolved it by adding "en_US.UTF-8 UTF-8" to /etc/locale.gen and running locale-gen. Hope this helps others.

kylesferrazza commented on 2018-02-26 05:09 (UTC)

@krprescott That's a strange error - can you pastebin a whole build?

kylesferrazza commented on 2018-02-22 23:58 (UTC)

@mgd It built successfully by setting TERM to xterm? What is your term value usually? I use "xterm-256color"

mgd commented on 2018-02-18 12:42 (UTC)

I had a problem building this package:

==> Beginne build()... MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. System.InvalidOperationException: The terminfo database is invalid. at System.TermInfo.Database..ctor(String term, Byte[] data) at System.TermInfo.Database.ReadDatabase(String term, String directoryPath) at System.TermInfo.Database.ReadDatabase(String term) at System.TermInfo.Database.ReadActiveDatabase() at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at System.ConsolePal.EnsureInitializedCore() at System.ConsolePal.ControlCHandlerRegistrar.Register() at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 526

Unhandled Exception: System.InvalidOperationException: The terminfo database is invalid. at System.TermInfo.Database..ctor(String term, Byte[] data) at System.TermInfo.Database.ReadDatabase(String term, String directoryPath) at System.TermInfo.Database.ReadDatabase(String term) at System.TermInfo.Database.ReadActiveDatabase() at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at System.ConsolePal.EnsureInitializedCore() at System.ConsolePal.ControlCHandlerRegistrar.Register() at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 748 at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args) in E:\A_work\17\s\src\MSBuild\XMake.cs:line 215 ==> FEHLER: Ein Fehler geschah in build(). Breche ab...

Searching for this error I found https://bugs.archlinux.org/task/57260 There two workarounds are presented: 1) Downgrading ncurses-6.1-3 to ncurses-6.0-4 2) Setting TERM=xterm (e.g. invoke 'TERM=xterm makepkg')

I could not try 1) because I did not find the ncurses package on the archlinux website. However 2) worked for me.

Kind regards, Michael

kylesferrazza commented on 2018-02-16 19:29 (UTC) (edited on 2018-02-16 19:29 (UTC) by kylesferrazza)

@ghotrix

I don't think so - powershell-bin comes with Install-Module though.

kylesferrazza commented on 2018-02-16 19:28 (UTC) (edited on 2018-02-16 19:29 (UTC) by kylesferrazza)

@Daniel_GT

Is it fixed in 6.0.1?

ghotrix commented on 2018-02-16 17:22 (UTC)

Wondering whether it should contain Install-Module cmdlet or not? In my case it doesn't which is very frustrating.

Daniel_GT commented on 2018-01-12 11:15 (UTC)

Hi @kylesferrazza I'd be grateful if you could take a look at https://pastebin.com/mM6W3Dtx, I'm getting a build error and would appreciate your help...

/opt/dotnet/sdk/2.1.4/Sdks/Microsoft.NET.Sdk/build/Microsoft.NET.GenerateAssemblyInfo.targets(146,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [/data/source/powershell/src/powershell/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj]

...Is this something you've come across, am I missing something obvious? Thanks.

kylesferrazza commented on 2018-01-11 19:27 (UTC)

Fixed those permissions with the PKGBUILD for 6.0

uffe commented on 2018-01-11 12:59 (UTC)

This is not so nice

check package with namcap:

powershell W: File (usr/lib/powershell/linux-x64/libhostpolicy.so) has the world writable bit set. powershell W: File (usr/lib/powershell/linux-x64/libhostfxr.so) has the world writable bit set. powershell W: File (usr/lib/powershell/linux-x64/Modules/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1) has the world writable bit set.

kylesferrazza commented on 2017-12-01 02:18 (UTC) (edited on 2017-12-01 02:18 (UTC) by kylesferrazza)

@jabdr Those modules are included in binary releases but are not part of regular upstream Powershell. I think it would make more sense to make another package for OneGet.

jabdr commented on 2017-11-27 10:10 (UTC)

Can you please add the Modules PackageManagement, PowerShellGet and Microsoft.PowerShell.Archive to the default installation? They are part of the powershell-bin package, but not powershell.

kaismh commented on 2017-10-27 19:04 (UTC)

@kylesferrazza Yes, from the powershell-bin, posted on the wrong package, sorry about that

kylesferrazza commented on 2017-10-27 18:52 (UTC) (edited on 2017-10-27 18:55 (UTC) by kylesferrazza)

@kaismh I'm assuming that error came from powershell-bin. I just pushed a fix, please try again.

kaismh commented on 2017-10-27 18:41 (UTC)

I am getting the following error when trying to update to the latest, chmod: cannot operate on dangling symlink 'usr/bin/pwsh' Any clue how to fix it?

kylesferrazza commented on 2017-10-26 18:01 (UTC)

Note that the binary is now called "pwsh"

kaismh commented on 2017-10-24 07:01 (UTC)

@kylesferrazza Yes it does

kylesferrazza commented on 2017-10-23 17:32 (UTC)

@kaismh Does the binary version of powershell come with PowerShellGet built-in?

kaismh commented on 2017-09-13 18:33 (UTC)

@kylesferrazza Thanks for your reply, I used https://aur.archlinux.org/packages/powershell-bin and it is working. Should we open an issue at https://github.com/PowerShell/PowerShellGet/issues

kylesferrazza commented on 2017-09-12 19:28 (UTC)

@kaismh When I attempt to build PowerShellGet from source, download.sh reports "Arch Linux is not supported!"

kaismh commented on 2017-09-12 08:01 (UTC)

It seems that the PowerShellGet module is not installed with this package, any idea on how to install it?

kylesferrazza commented on 2017-08-26 18:24 (UTC)

@Vaporeon I will look into this issue and update to beta 6 tomorrow night.

Vaporeon commented on 2017-08-26 03:31 (UTC)

Hi. The tests in this package fail if makepkg is run remotely over SSH.

kylesferrazza commented on 2017-08-21 12:41 (UTC)

Thanks gegenschall!

gegenschall commented on 2017-08-21 09:09 (UTC) (edited on 2017-08-21 09:36 (UTC) by gegenschall)

I don't see the problem here. It builds just fine on my machine with the latest dotnet packages. Here's a recording of me building it: https://asciinema.org/a/UXMisYMVtPzi5hpizFz2VAVnN One thing though: Make sure that your PKGBUILD does not execute build.psm1 from build.sh if you have powershell installed already. That won't work and complains about dotnet 2.0.0 being too old compared to a preview version. You can use this PKGBUILD, it should be working for v6.0.0-beta.5: https://gist.github.com/gegenschall/58529f14538f33ef0c21ad3409ce631b Cheers!

commented on 2017-08-17 04:44 (UTC)

well @kylesferrazza dotnet 2.0 was released, powershell build now with beta5?

kylesferrazza commented on 2017-07-21 22:09 (UTC) (edited on 2017-07-22 02:09 (UTC) by kylesferrazza)

I'll update to beta 4 as soon as dotnet 2.0 preview 3 is released and add an entry to /etc/shells tonight

commented on 2017-07-19 05:42 (UTC)

is possible to add /usr/bin/powershell to /etc/shells like the other shells? I'm using it but I was forced to add manually the entrie but I would preffer keep it tracked on the package like fish or zsh do Also there is beta-4 released 5 days ago https://github.com/PowerShell/PowerShell/releases

kylesferrazza commented on 2017-06-09 18:59 (UTC) (edited on 2017-06-09 19:03 (UTC) by kylesferrazza)

@Sacro https://aur.archlinux.org/packages/powershell-dotnet_stable This package will continue to use dotnet-cli-git as it should represent the latest powershell release. Powershell-dotnet_stable will contain the last release of powershell that works with the latest release of dotnet.

Sacro commented on 2017-06-08 21:24 (UTC)

Right, so then I guess this should remain as powershell, with dotnet-cli, and a new package should be created (powershell-beta?) that pulls in dotnet-cli-git. Sorry to be a pain.

kylesferrazza commented on 2017-06-08 12:35 (UTC)

@Sacro The problem with linking against dotnet-cli is that the latest PowerShell releases rely on dotnet 2.0, and a stable release of dotnet 2.0 hasn't been made yet.

Sacro commented on 2017-06-08 10:59 (UTC)

My main issue was that you're wanting to pull in dotnet-cli-git, this should be done in a separate package so that those of us wanting to keep dotnet-cli to stable releases can. I didn't realise there was no current "stable" non-beta release, that's fine, but can you link it against dotnet-cli instead?

kylesferrazza commented on 2017-06-07 17:11 (UTC) (edited on 2017-06-07 17:12 (UTC) by kylesferrazza)

@Sacro It's not a non-alpha package.. There haven't yet been "stable" non-beta releases.

Sacro commented on 2017-06-07 15:55 (UTC)

Eugh, just noticed that you're pushing alpha builds in a non-alpha package. Yes, I guess so, (or whatever so long as it doesn't require dotnet-cli-git). Ideally you'd have separate PKGBUILDs for the differing versions. My main issue is I need dotnet-cli, not dotnet-cli-git.

kylesferrazza commented on 2017-06-07 11:46 (UTC)

@Sacro So are suggesting I go back to the last alpha?

Sacro commented on 2017-06-07 11:32 (UTC)

This is a beta release, not a stable release (and also brings in dotnet-cli-git), please move it to a powershell-beta package.

kylesferrazza commented on 2017-06-07 00:29 (UTC) (edited on 2017-06-07 00:30 (UTC) by kylesferrazza)

@Sacro Powershell is now out of alpha and in beta. This is the latest release.

Sacro commented on 2017-06-06 21:50 (UTC)

Please can you keep beta versions to a powershell-beta package, not all of us want non stable releases installing.

kylesferrazza commented on 2017-05-25 21:48 (UTC)

Fixed and updated to work with dotnet 2.0!

kylesferrazza commented on 2017-05-16 01:31 (UTC)

fixed

dcbaker commented on 2017-05-16 01:00 (UTC)

the link function for creating /usr/bin/powershell is wrong, it ends up trying to create a symlink to the build directory rather than the actual install directory. You need to remove the "$pkgdir" from the first path to ln. I also noticed that powershell is installed with mode 744, which seems wrong, 755 seems correct.

kylesferrazza commented on 2017-05-15 11:26 (UTC)

Alpha 18 is working now! I will update to the dotnet 2.0 builds when they are working stably.

nonyy commented on 2017-05-07 11:34 (UTC)

I managed to release a working binary package based on the official ubuntu16.04 release: https://aur.archlinux.org/packages/powershell-bin

masterkorp commented on 2017-05-02 13:14 (UTC)

Hello, I am having troubles compiling powershell. /tmp/pkgbuild-1000/powershell/src/powershell Unhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Interop.CryptoInitializer.EnsureOpenSslInitialized() at Interop.CryptoInitializer..cctor() --- End of inner exception stack trace --- at Interop.Crypto..cctor() --- End of inner exception stack trace --- at Interop.Crypto.GetRandomBytes(Byte* buf, Int32 num) at System.IO.Path.GetCryptoRandomBytesOpenSsl(Byte* bytes, Int32 byteCount) at System.IO.Path.GetCryptoRandomBytes(Byte* bytes, Int32 byteCount) at System.IO.Path.GetRandomFileName() at Microsoft.DotNet.InternalAbstractions.TemporaryDirectory..ctor() at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory() at Microsoft.DotNet.Configurer.NuGetPackagesArchiver..ctor() at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel) at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args) /tmp/pkgbuild-1000/powershell/src/build.sh: line 3: 310 Aborted (core dumped) dotnet restore /tmp/pkgbuild-1000/powershell/src/powershell/src/ResGen /tmp/pkgbuild-1000/powershell/src/powershell Unhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Interop.CryptoInitializer.EnsureOpenSslInitialized() at Interop.CryptoInitializer..cctor() --- End of inner exception stack trace --- at Interop.Crypto..cctor() --- End of inner exception stack trace --- at Interop.Crypto.GetRandomBytes(Byte* buf, Int32 num) at System.IO.Path.GetCryptoRandomBytesOpenSsl(Byte* bytes, Int32 byteCount) at System.IO.Path.GetCryptoRandomBytes(Byte* bytes, Int32 byteCount) at System.IO.Path.GetRandomFileName() at Microsoft.DotNet.InternalAbstractions.TemporaryDirectory..ctor() at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory() at Microsoft.DotNet.Configurer.NuGetPackagesArchiver..ctor() at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel) at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args) /tmp/pkgbuild-1000/powershell/src/build.sh: line 6: 321 Aborted (core dumped) dotnet run -c Linux /tmp/pkgbuild-1000/powershell/src/powershell /tmp/pkgbuild-1000/powershell/src/powershell/src/TypeCatalogParser /tmp/pkgbuild-1000/powershell/src/powershell Unhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Interop.CryptoInitializer.EnsureOpenSslInitialized() at Interop.CryptoInitializer..cctor() --- End of inner exception stack trace --- at Interop.Crypto..cctor() --- End of inner exception stack trace --- at Interop.Crypto.GetRandomBytes(Byte* buf, Int32 num) at System.IO.Path.GetCryptoRandomBytesOpenSsl(Byte* bytes, Int32 byteCount) at System.IO.Path.GetCryptoRandomBytes(Byte* bytes, Int32 byteCount) at System.IO.Path.GetRandomFileName() at Microsoft.DotNet.InternalAbstractions.TemporaryDirectory..ctor() at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory() at Microsoft.DotNet.Configurer.NuGetPackagesArchiver..ctor() at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel) at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args) /tmp/pkgbuild-1000/powershell/src/build.sh: line 10: 335 Aborted (core dumped) dotnet run -c Linux /tmp/pkgbuild-1000/powershell/src/powershell /tmp/pkgbuild-1000/powershell/src/powershell/src/TypeCatalogGen /tmp/pkgbuild-1000/powershell/src/powershell Unhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Interop.CryptoInitializer.EnsureOpenSslInitialized() at Interop.CryptoInitializer..cctor() --- End of inner exception stack trace --- at Interop.Crypto..cctor() --- End of inner exception stack trace --- at Interop.Crypto.GetRandomBytes(Byte* buf, Int32 num) at System.IO.Path.GetCryptoRandomBytesOpenSsl(Byte* bytes, Int32 byteCount) at System.IO.Path.GetCryptoRandomBytes(Byte* bytes, Int32 byteCount) at System.IO.Path.GetRandomFileName() at Microsoft.DotNet.InternalAbstractions.TemporaryDirectory..ctor() at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory() at Microsoft.DotNet.Configurer.NuGetPackagesArchiver..ctor() at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel) at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args) /tmp/pkgbuild-1000/powershell/src/build.sh: line 14: 351 Aborted (core dumped) dotnet run -c Linux ../Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/CorePsTypeCatalog.cs powershell.inc /tmp/pkgbuild-1000/powershell/src/powershell Unhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Interop.CryptoInitializer.EnsureOpenSslInitialized() at Interop.CryptoInitializer..cctor() --- End of inner exception stack trace --- at Interop.Crypto..cctor() --- End of inner exception stack trace --- at Interop.Crypto.GetRandomBytes(Byte* buf, Int32 num) at System.IO.Path.GetCryptoRandomBytesOpenSsl(Byte* bytes, Int32 byteCount) at System.IO.Path.GetCryptoRandomBytes(Byte* bytes, Int32 byteCount) at System.IO.Path.GetRandomFileName() at Microsoft.DotNet.InternalAbstractions.TemporaryDirectory..ctor() at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory() at Microsoft.DotNet.Configurer.NuGetPackagesArchiver..ctor() at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel) at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args) /tmp/pkgbuild-1000/powershell/src/build.sh: line 18: 369 Aborted (core dumped) dotnet build -c Linux

kylesferrazza commented on 2017-04-29 13:26 (UTC)

I will be able to fix this as soon as dotnet and dotnetsdk start working with clang 4. I cannot get dotnet to compile at all, even after downgrading clang and llvm.

jade1 commented on 2017-04-10 03:18 (UTC)

Just reproduced https://github.com/PowerShell/PowerShell/issues/3476. Workaround is in there, but it will probably be fixed in upstream.

kylesferrazza commented on 2017-03-27 19:18 (UTC)

@optlink Ah ok. Will update pkgbuild accordingly for next release.

optlink commented on 2017-03-27 17:37 (UTC)

@kylesferrazza Based on my previous comment I believe these are what you are looking for: https://github.com/PowerShell/PowerShell/issues/3140 https://github.com/PowerShell/PowerShell/pull/3398 The referenced merge happened after the release of alpha 17 so we will have to wait until the next one.

kylesferrazza commented on 2017-03-24 17:28 (UTC) (edited on 2017-06-21 18:09 (UTC) by kylesferrazza)

I tried a bunch of different configurations with dotnet-cli. Dotnet-bin will need to be used until dotnet issue is fixed. Unless someone else is able to figure it out? https://github.com/PowerShell/PowerShell/issues/673

patch3 commented on 2017-03-22 18:38 (UTC) (edited on 2017-03-22 18:49 (UTC) by patch3)

Am also having the same issue. Going to give dotnet-bin a go. Edit: Worked like a charm.

Purgator commented on 2017-03-20 14:08 (UTC)

I'm having the same issue as optlink. If I try manually to run dotnet restore from any projet directory (ex : src/powershell/src/Microsoft.PowerShell.SDK/), i get the following error : MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file. I don't want to use dotnet-bin but dotnet-cli. Any clue ?

optlink commented on 2017-03-05 22:17 (UTC)

@MatejLach @kylesferrazza My guess is that the problem is caused by the large difference between the older version of dotnet used by dotnet-bin and the newer ones used in dotnet-cli and dotnet-cli-git.

MatejLach commented on 2017-03-05 17:50 (UTC)

@optlink Installing 'dotnet-bin' instead of 'dotnet-cli' allowed me to compile.

kylesferrazza commented on 2017-03-02 18:51 (UTC)

@optlink I just did a clean build, no such issues. Maybe reinstall? Let me know how it goes.

optlink commented on 2017-03-02 17:46 (UTC)

Ah I'm having some build issues. I think the build.sh is not up to date. /opt/dotnet/sdk/1.0.1-rc4-004947/NuGet.targets(97,5): warning : Unable to find a project to restore! [/home/optlink/.cache/pacaur/powershell/src/powershell/powershell.sln] ~/.cache/pacaur/powershell/src/powershell/src/ResGen ~/.cache/pacaur/powershell/src/powershell Couldn't find a project to run. Ensure a project exists in /home/optlink/.cache/pacaur/powershell/src/powershell/src/ResGen. Or pass the path to the project using --project ~/.cache/pacaur/powershell/src/powershell ~/.cache/pacaur/powershell/src/powershell/src/TypeCatalogParser ~/.cache/pacaur/powershell/src/powershell Couldn't find a project to run. Ensure a project exists in /home/optlink/.cache/pacaur/powershell/src/powershell/src/TypeCatalogParser. Or pass the path to the project using --project ~/.cache/pacaur/powershell/src/powershell ~/.cache/pacaur/powershell/src/powershell/src/TypeCatalogGen ~/.cache/pacaur/powershell/src/powershell Couldn't find a project to run. Ensure a project exists in /home/optlink/.cache/pacaur/powershell/src/powershell/src/TypeCatalogGen. Or pass the path to the project using --project ~/.cache/pacaur/powershell/src/powershell Microsoft (R) Build Engine version 15.1.548.43366 Copyright (C) Microsoft Corporation. All rights reserved. MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file. ==> ERROR: A failure occurred in build(). Aborting... :: icu55 is now an orphan package :: proot is now an orphan package :: python-docutils is now an orphan package :: failed to build powershell package(s)

optlink commented on 2017-03-02 17:20 (UTC)

Do you have one of these three packages installed: dotnet-bin, dotnet-cli, dotnet-cli-git? They all provide dotnet. It works here with dotnet-cli.

kylesferrazza commented on 2017-03-02 03:21 (UTC) (edited on 2017-03-02 03:25 (UTC) by kylesferrazza)

With dotnet instead of dotnet-bin in makedepends I get this error on install. Any ideas @optlink? >>> pacaur -S powershell :: Package powershell not found in repositories, trying AUR... :: resolving dependencies... :: no results found for dotnet (dependency tree: powershell dotnet)

optlink commented on 2017-03-01 22:18 (UTC)

Could we have the dotnet-bin dependency changed to dotnet so that we can use dotnet-cli or dotnet-cli-git?

MarcinWieczorek commented on 2017-02-19 19:40 (UTC) (edited on 2017-02-19 19:41 (UTC) by MarcinWieczorek)

Please use the tarball from tagged release on github as all the packages do. It's hard with submodules, we can download it w/o the history at least.

jsteel commented on 2017-02-15 08:26 (UTC)

You have to choose either dotnet-cli or dotnet-bin; both provide dotnet.

pms1969 commented on 2017-02-08 13:21 (UTC) (edited on 2017-02-08 13:22 (UTC) by pms1969)

currently getting the below output when trying to install > pacaur -S powershell :: Package powershell not found in repositories, trying AUR... :: resolving dependencies... :: no results found for dotnet (dependency tree: powershell dotnet)

jsteel commented on 2017-01-24 18:06 (UTC)

OK good call, done.

yurikoles commented on 2017-01-24 16:44 (UTC)

Please update dependecy from dotnet-cli to dotnet. Because dotnet-cli is failing to build now and is very outdated. But both packages provide 'dotnet'.