PowerShell-Native icon indicating copy to clipboard operation
PowerShell-Native copied to clipboard

We should remove dependency on this assembly by changing usage of Native APIs in PS7 to .NET APIs or P/Invokes

Open SteveL-MSFT opened this issue 4 years ago • 2 comments

Perhaps also consider removing #ifdef UNIX so we can have a single MSIL based universal package (although still requires platform specific .NET runtime)

SteveL-MSFT avatar Nov 30 '21 21:11 SteveL-MSFT

An option is to use .Net System.Native. See #67.

Perhaps also consider removing #ifdef UNIX

344 such conditions in pwsh :-) Of cause not all related to p/invokes but we need a lot of time to review and fix - we need start early if we want to do this.

Perhaps it makes sense to ask .Net team to review the PowerShell Native - is it possible to migrate pwsh to use new GeneratedDllImport attribute or they need a time to enhance the attribute/generator?

iSazonov avatar Dec 01 '21 04:12 iSazonov

@SteveL-MSFT is there still a plan on removing this as dependency? If not, I have some FreeBSD related fixes I would like to make.

Thefrank avatar Feb 26 '23 03:02 Thefrank