Created
August 14, 2011 03:40
-
-
Save jstangroome/1144537 to your computer and use it in GitHub Desktop.
Example Nuget package install script in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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