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

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -