NuGet - install.ps1 does not get called

前端 未结 3 1169
日久生厌
日久生厌 2020-12-20 12:43

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         


        
3条回答
  •  一生所求
    2020-12-20 13:01

    Install.ps1 (and Uninstall.ps1) are no longer called in v3, but you can use Init.ps1. See here:

    Powershell script support was modified to no longer execute install and uninstall scripts, but init scripts are still executed. Some of the reasoning for this is the inability to determine which package scripts need to be run when not all packages are directly referenced by a project.

提交回复
热议问题