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

Add-Type doesn't work properly in PowerShell Azure Functions #220

Closed
daxian-dbw opened this issue May 11, 2019 · 7 comments
Closed

Add-Type doesn't work properly in PowerShell Azure Functions #220

daxian-dbw opened this issue May 11, 2019 · 7 comments
Assignees
Milestone

Comments

@daxian-dbw
Copy link
Contributor

Add-Type depends on a set of reference assemblies to properly compile C# code. PowerShell language worker currently doesn't ship the refs folder as what pwsh does.

@TylerLeonhardt
Copy link
Member

@vexx32 are you doing that at all in PSWordCloud? Maybe this could be related.

@TylerLeonhardt
Copy link
Member

@daxian-dbw would this be a PowerShell issue? Does the SDK give us this refs folder?

@vexx32
Copy link

vexx32 commented May 12, 2019

On a Windows-based platform, yes, Add-Type is necessary to execute the p/invoke to set the native assembly load path based on architecture. 🙂

@daxian-dbw
Copy link
Contributor Author

@TylerLeonhardt this should be a PowerShell SDK issue. Not just the language worker, any application that host PowerShell will have the same problem.

@TylerLeonhardt
Copy link
Member

That makes sense, we should probably open this on PowerShell, right?

@daxian-dbw
Copy link
Contributor Author

Right, issue opened: PowerShell/PowerShell#9587

@Francisco-Gamino
Copy link
Contributor

This issue is fixed.

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

No branches or pull requests

5 participants