madewokherd / wine-mono

Other
296 stars 39 forks source link

Include PowerShell #15

Open alesliehughes opened 11 years ago

alesliehughes commented 11 years ago

A free PowerShell for mono has been created and basic functionality. https://github.com/Pash-Project/Pash

alesliehughes commented 11 years ago

Basic Registry.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1] "Install"=dword:00000001 "PID"="89383-100-0001260-04309"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\0409] "Install"=dword:00000001

alesliehughes commented 11 years ago

The following directory is where the assemblies would be installed. C:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0

Environment MONO_PATCH would need to be set to the above path.

madewokherd commented 11 years ago

Is binary compatibility a goal of this project?

Is there downloadable software using powershell that I can use to test it? CoApp's PowerShell tools maybe? http://coapp.org/pages/releases.html

ghost commented 9 years ago

Chocolatey package manager for Windows heavily depends on powershell, which is a good source to test Pash, but Pash is not compatible enough to support chocolatey yet at this time.

alesliehughes commented 6 years ago

https://github.com/PowerShell/PowerShell

Ruedii commented 6 years ago

Is the windows implementation of powershell based on .Net or C/C++? It always thought it was a C/C++ program.

theuserbl commented 6 months ago

What is still micssing is a complete reimplementation of the Windows PowerShell 5.x. wine-mono is not a replacement for .NET Core / .NET 5+, it is a replacement for .NET 4.x.

And so, the OpenSource PowerShell could be used as basis for a reimplementation of the Windows PowerShell 5.x. And there are PowerShell modules, which are part of Windows and not of the PowerShell.

For example, write on Windows in PowerShell 7.x (the OpernSource ones) Get-Module -ListAvailable

Then you see, that there are some Modules in C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules and other places, which have nothing to do with the PowerShell 7.x.

And if you running PowerShell 7.x on WINE, commands like Get-Volume, Get-Partition, etc. don't work, because they are part of the Windows-modules.

Edit: I think the PowerShell Modules in Windows are much more important to reimplement, then the Windows PowerShell 5.x itself. But without that, you have Modules, which you can only use, after installing the PowerShell after it.

theuserbl commented 6 months ago

Only wanted to mention this link as OpenSource documentation by Microsoft https://github.com/MicrosoftDocs/windows-powershell-docs/tree/main/docset/winserver2025-ps

Here the link to the two examples I mentioned: https://github.com/MicrosoftDocs/windows-powershell-docs/blob/main/docset/winserver2025-ps/storage/Get-Volume.md https://github.com/MicrosoftDocs/windows-powershell-docs/blob/main/docset/winserver2025-ps/storage/Get-Partition.md

There you can see, that they are part of the "storage"-module.

Ruedii commented 6 months ago

This would likely need to be implemented upstream in Wine and Wine-Mono, but if there are particular ways in which Proton can utilize this, we may be able to get Valve to provide either programming or fiscal support for implementing it.

Getting Wine-Mono to implement newer .Net versions is another concern. Personally, I wish there were not the incompatibilities between Wine-Mono and .Net that make porting the Open Source portions of .Net so difficult.

Message ID: @.***>

madewokherd commented 6 months ago

.NET Core and 5+ are out of scope for Wine Mono.