SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Version 2.37 of .net does not support VS 4.5 framework #6661

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 6661

Hi,
I was using Visual Studio 2010 Ultimate and getting this warmings while I try to run
a Selenium test. I am assuming the dot net version of selenium does not support 4.5
framework. Is there a plan to support it in the future? How can I make it work for
now even though it is a warning. 

Warning 1   The referenced assembly "ThoughtWorks.Selenium.Core" could not be resolved
because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".
Please remove references to assemblies not in the targeted framework or consider retargeting
your project.   SeleniumConsoleApp

Reported by zariftech on 2013-12-03 16:32:02

lukeis commented 8 years ago
The issue is not Selenium, but rather you are targetting the Client Profile versions
of .NET specifically, of which System.Web is not included.

So yes, it does support v4.5, but you are not using v4.5 and you are not using .NET
v4 "full" either. So correct the platform you are targetting in the project properties.

Reported by arran.huxtable on 2013-12-03 17:35:44

lukeis commented 8 years ago
Thanks a lot @Arran. I have updated and do not see any error now. 

Reported by zariftech on 2013-12-03 18:29:27

lukeis commented 8 years ago

Reported by barancev on 2013-12-04 10:20:43

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:18:19