NuGet: How can I change property of files with Install.ps1 file?
问题 I am creating NuGet package and for that I have created Nuspec manifest file. In content folder I have two files, test.exe and test.config . Now I would like to change property "Copy To Output Directory" of these the files to "Copy Always" in project, when any user installs this package. I found related question NuGet how to apply properties to files, that shows can do this using PowerShell install.ps1 script, but I have no idea how to create that file. 回答1: Your install.ps1 file should look