Examples of powershell install scripts

Apr 20, 2011 at 3:30 PM


I'm a powershell dunce, and I'm failing to find any good examples of powershell install scripts for nuget packages.

Can anyone point me to some examples?

What I ultimately want to do is to set my package so that whenever it is installed, it adds a file to the project root, which takes its name of the project.  E.g. if the library is added to "ClassLibrary1" then the file created would be "ClassLibrary1-AddIn.cs" (for example).  So like the config/source templating, but just with the filename.

How should I structure the package to achieve this?