lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
506 stars 115 forks source link

unable to upgrade to canopy 2.0.1 #439

Open manishdube opened 6 years ago

manishdube commented 6 years ago

unable to upgrade to canopy 2.0.1 Updating the nuget package throws the below error.

Unable to resolve dependencies. 'System.Drawing.Common 4.0.0' is not compatible with 'canopy 2.0.1 constraint: System.Drawing.Common

lefthandedgoat commented 6 years ago

What version of .net framework. I think you need to target 4.6.2

manishdube commented 6 years ago

on 4.6.1 currently. will try upgrading and see. thanks.

lefthandedgoat commented 6 years ago

I was able to reproduce this and figure this out. I just installed the drawing package first, then canopy installed fine:

https://www.nuget.org/packages/System.Drawing.Common/4.5.0-preview1-26216-02

VictorHug0 commented 6 years ago

I have the same issue. I installed the drawing package first, as you suggested. I have this error:

Package 'canopy.2.0.1 : FSharp.Core [4.3.4, ), Selenium.WebDriver [3.11.0, ), System.Drawing.Common [4.5.0-preview1-26216-02, )' does not exist in project

install-package : Failed to add reference to 'chromedriver'.

lefthandedgoat commented 6 years ago

@VictorHug0 What command are you running ? Install-Package canopy -Version 2.0.1 ?

VictorHug0 commented 6 years ago

I'm using: Install-Package canopy

lefthandedgoat commented 6 years ago

@VictorHug0 can you try canopy 2.1.0 it updates to the latest System.Drawing.Common that may have been the source of your problems:

https://www.nuget.org/packages/canopy/2.1.0

VictorHug0 commented 5 years ago

Now I´m getting this error:

Could not install package 'canopy 2.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework

I'm trying to upgrade the .NetFramework Version but no options are displayed in the Target Framework field on Visual Studio 2017