How to create a powershell script that triggers a NuGet Update-Package –reinstall? -
i have nuget spec installs both library file (dll) , 2 zip packages on specific folder. updating packages no issue when doing visual studio 2013 manually. however, when being triggered either our ci servers teamcity , ccnet, updating dll file , not 2 zip packages vital.
i assume since there previous zip files existing on folders, may having difficulty overwriting files, since, in vs2013, prompt confirms if user wants overwrite files.
when use package manager console vs2013, can trigger update-package –reinstall [package id] , it'll job correctly. now, need same thing , apply automation our ci server.
if understand correctly, can trigger nuget commands powershell?
i appreciate inputs, i'm not expert in this.
you should run update command nuget.exe. 1 of parameters of update command fileconflictaction
, tells action take when asked overwrite or ignore existing files referenced project: overwrite
, ignore
, none
.
you might have wrap in powershell script, possibly referring envdte, set paths , mimick environment have powershell console within visual studio.
Comments
Post a Comment