Skip to content

Instantly share code, notes, and snippets.

@jstangroome
Created August 14, 2011 03:40
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstangroome/1144537 to your computer and use it in GitHub Desktop.
Save jstangroome/1144537 to your computer and use it in GitHub Desktop.
Example Nuget package install script in C#
param ($InstallPath, $ToolsPath, $Package, $Project)
Add-Type -Language CSharpVersion3 -TypeDefinition @'
public class MyPackage {
public static void Execute(string installPath, string toolsPath, object package, object Project) {
// implement Nuget init, install, uninstall script as C#
System.Console.WriteLine(installPath);
}
}
'@
[MyPackage]::Execute($InstallPath, $ToolsPath, $Package, $Project)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment