I\'m trying to create my first NuGet package. I don\'t know why my install.ps1 script does not get called. This is directory structure
--Package
|
- MyPacka
An alternative to the install script can sometimes be a package targets file. This targets file is automatically weaved into the project file (csproj, ...) and gets called with a build.
To allow Nuget to find this targets file and to weave it in, these two things are mandatory:
.targets
build
at the top level of the packageIf you like to copy something to the output folder (e.g. some additional binaries, like native DLLs) you can put these binaries into the package under folder binaries
and use this fragment in the targets file for the copying: