visual studio 2010 - Execute a NuGet command from c# code -
i'm trying find way call install-package mypackage right c# code.
i've tried using powershell in c# i'm not familiar it.
can give me example of how so?
you try execute powershell command
namespace: system.management.automation
assembly: system.management.automation (in system.management.automation.dll)
private static void runpowershell(string command) { var powershell = powershell.create(); powershell.addcommand(command); powershell.invoke(); }
Comments
Post a Comment