How to debug install.ps1 script of NuGet package

后端 未结 5 378
闹比i
闹比i 2020-12-22 22:52

So we can include an install/uninstall powershell scripts in a NuGet package. I tried, but my install.ps1 does not work. Is there any possibility to find out why? Debugging,

5条回答
  •  醉梦人生
    2020-12-22 23:14

    Run your scripts through the Package Manager Console in VS (details on the console at https://docs.nuget.org/ndocs/tools/package-manager-console) -- and anything that causes an error along the way will be written out in red.

    Also, you can write diagnostic trace type info with Write-Host to the same console.

提交回复
热议问题