Modify nuget package version before build
We are using Selenium and Chromedriver for unit testing and locally have the latest Chrome installed, currently 78, but the appveyor build images only support up to 77. I am trying to find a way to have the Selenium.WebDriver.ChromeDriver nuget package downgraded before the build process so that we don't have to worry about the package versions locally.
Microsoft has the Update-Package powershell cmdlet but its only available from the nuget console. Is there a way to run nuget console commands in the build process? Or another way to accomplish what I am trying to do? Preferably without doing like a manual string replace on the packages.config and .csproj.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 08 Nov, 2019 10:18 PM
Sure, you can use
nuget
command line client which is pre-installed on build VMs. Also, you can upgrade Chrome to the latest version with Chocolatey:choco install googlechrome
.Btw, we've just deployed updated build VM images with the latest Chrome 78 installed.
2 Posted by pdoyle on 12 Nov, 2019 02:33 PM
Thanks!
Where can those commands be run from? The "before build script" as Cmd or?
Support Staff 3 Posted by Feodor Fitsner on 12 Nov, 2019 07:22 PM
Yep...and as I previously noted we've updated build images with the latest Chrome.
Feodor Fitsner closed this discussion on 03 Apr, 2020 06:46 PM.