Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SteveL-MSFT opened this issue Nov 30, 2021 · 2 comments

Comments

@SteveL-MSFT
Copy link
Member

SteveL-MSFT commented Nov 30, 2021

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

@iSazonov
Copy link
Contributor

iSazonov commented Dec 1, 2021

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?

@Thefrank
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants