Execute NuGet PowerShell Command by code

254 Views Asked by At

I have a NuGet package with PowerShell commands.

I want to manage it from a context menu (added with a vsix). With NuGet.VisualStudio I can install my NuGet package by code but I don’t find how to execute NuGet package PowerShell commands.

Can anybody help me?

Thanks

Matthieu

1

There are 1 best solutions below

2
On

You can use the IScriptExecutor to execute a powershell script in your NuGet package.