Selenium RC compilation warning for C #

When I compile my code in VS 2010 (.NET 4.0), I get the following warning:

"Warning 1: the reference to the assembly" ThoughtWorks.Selenium.Core "cannot be resolved because it has a dependency on" System.Web, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a ", which is not in the current target ".NETFramework, Version = v4.0, Profile = Client" structure. Remove assembly references not in the target structure or do not consider redirecting your project. "

(It raises this warning, but it really is a mistake, because you cannot use the Selenium namespace because of this.) I tried to add / remove links to the System.Web namespace without any luck. Does anyone know how to fix this?

+3
source share
2 answers

Try changing the target structure from .Net Framework 4 Client Profile to .Net Framework 4

The client profile is a kind of "reduced" version of the .Net 4 infrastructure.

+11
source

, .NET Fx (2.0 3.5) - () VS 2008 VS 2010. - .

0

Source: https://habr.com/ru/post/1762581/


All Articles